[Fedora-security-commits] fedora-security/tools/lib/Libexig Fedora.pm, 1.10, 1.11

fedora-security-commits at redhat.com fedora-security-commits at redhat.com
Thu Oct 22 16:37:48 UTC 2009


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;
 	}




More information about the Fedora-security-commits mailing list