From fedora-security-commits at redhat.com Thu Oct 22 16:37:19 2009 From: fedora-security-commits at redhat.com (fedora-security-commits at redhat.com) Date: Thu, 22 Oct 2009 16:37:19 +0000 (UTC) Subject: [Fedora-security-commits] fedora-security/tools/scripts add-tracking-bugs, 1.4, 1.5 Message-ID: <20091022163719.23B4F11C008C@cvs1.fedora.phx.redhat.com> Author: vdanen Update of /cvs/fedora/fedora-security/tools/scripts In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29522/scripts Modified Files: add-tracking-bugs Log Message: update to more recent Fedora versions, and add an 'all' version to file one tracker for multiple Fedora releases (still needs a little finesse) Index: add-tracking-bugs =================================================================== RCS file: /cvs/fedora/fedora-security/tools/scripts/add-tracking-bugs,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- add-tracking-bugs 26 Aug 2008 11:31:14 -0000 1.4 +++ add-tracking-bugs 22 Oct 2009 16:37:18 -0000 1.5 @@ -6,7 +6,7 @@ my $usage = 'add-tracking-bugs [options...] --bugs=[,...] Parent bugs - --versions=[,...] Affected Fedora versions + --versions=[,...] Affected Fedora versions (use "all" for all supported releases) --component= Affected package, to find owner to CC (mandatory) --username= Bugzilla login (defaults to $LOGNAME at redhat.com) --password= Bugzilla passwords (asks for it, if not supplied) From fedora-security-commits at redhat.com Thu Oct 22 16:37:48 2009 From: fedora-security-commits at redhat.com (fedora-security-commits at redhat.com) Date: Thu, 22 Oct 2009 16:37:48 +0000 (UTC) Subject: [Fedora-security-commits] fedora-security/tools/lib/Libexig Fedora.pm, 1.10, 1.11 Message-ID: <20091022163748.D8A9D11C008C@cvs1.fedora.phx.redhat.com> Author: vdanen Update of /cvs/fedora/fedora-security/tools/lib/Libexig In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29522/lib/Libexig Modified Files: Fedora.pm Log Message: update to more recent Fedora versions, and add an 'all' version to file one tracker for multiple Fedora releases (still needs a little finesse) Index: Fedora.pm =================================================================== RCS file: /cvs/fedora/fedora-security/tools/lib/Libexig/Fedora.pm,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- Fedora.pm 23 Feb 2009 15:35:14 -0000 1.10 +++ Fedora.pm 22 Oct 2009 16:37:18 -0000 1.11 @@ -112,6 +112,13 @@ 'commit message.'. "\n\n"; +my $comment_all = + "\n". + 'Please note: this issue affects all currently supported versions of '. + 'Fedora. Only one tracking bug has been filed; you should use it for '. + 'all affected versions.'. + "\n\n"; + my %priorities = ( 'urgent', => 4, 'high', => 3, @@ -121,19 +128,20 @@ # Valid versions my %versions = ( - '9', => '9', - 'f9', => '9', - 'fc9', => '9', '10', => '10', 'f10', => '10', 'fc10', => '10', - '11', => 'rawhide', - 'f11', => 'rawhide', - 'fc11', => 'rawhide', + '11', => '11', + 'f11', => '11', + 'fc11', => '11', + '12', => 'rawhide', + 'f12', => 'rawhide', + 'fc12', => 'rawhide', 'devel', => 'rawhide', + 'all', => 'all' ); -my $rawhide_version= '11'; +my $rawhide_version= '12'; sub tracking_bugs { @@ -188,11 +196,21 @@ $bug{'short_desc'} .= " [Fedora $versions{$version}]"; $bug{'version'} = $versions{$version}; + if ($bug{'version'} eq 'all') { + my $allcomps = 1; + } else { + my $allcomps = 0; + } + $bug{'comment'} = $comment_head. $comment_parents. ($bug{'version'} eq 'rawhide' ? $comment_rawhide : $comment_update). + ($bug{'version'} eq 'all' ? $comment_all : print '' ). $comment_tail; + if ($bug{'version'} eq 'all') { + $bug{'version'} = 'rawhide'; + } push @retval, \%bug; } @@ -268,7 +286,12 @@ } $bugzilla->add_blockers ($bug_id, $parent_bugs); - $comment .= $bug->{'version'}.": bug #$bug_id\n"; + if (my $allcomps eq 0) + { + $comment .= $bug->{'version'}.": bug #$bug_id\n"; + } else { + $comment .= "All versions: bug #$bug_id\n"; + } push @created_bugs, $bug_id; }