Commit e83b4681 authored by Michael Stefaniuc's avatar Michael Stefaniuc

tools: Get the bug list for ANNOUNCE from the stable-notes git notes.

parent 13940871
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
use strict; use strict;
use locale; use locale;
use POSIX; use POSIX;
use Text::CSV::Encoded;
binmode STDOUT, ':utf8'; binmode STDOUT, ':utf8';
sub unescape($) sub unescape($)
...@@ -69,18 +68,14 @@ sub get_current_version() ...@@ -69,18 +68,14 @@ sub get_current_version()
# retrieve a list of bugs with the specified filter # retrieve a list of bugs with the specified filter
sub get_bugs($) sub get_bugs($)
{ {
my $filter = shift;
my $csv = Text::CSV::Encoded->new({ encoding_in => "utf-8", encoding_out => "utf-8" });
my %bugs; my %bugs;
open QUERY, "-|" or exec "wget", "-qO-", "https://bugs.winehq.org/buglist.cgi?columnlist=short_desc&query_format=advanced&ctype=csv&$filter" open QUERY, "-|" or exec "git", "log", "--notes=stable-notes", "--format=%N", "wine-" . get_current_version() . "..stable"
or die "cannot query bug list"; or die "cannot query bug list";
<QUERY>; # skip header line
while (<QUERY>) while (<QUERY>)
{ {
next unless $csv->parse($_); next unless /^Fixes: \[(\d+)\] (.*)/;
my ($id, $descr) = $csv->fields(); $bugs{$1} = $2;
$bugs{$id} = $descr;
} }
close QUERY; close QUERY;
return %bugs; return %bugs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment