[Fedora-security-commits] fedora-security/tools/scripts add-issue, 1.7, 1.8

fedora-security-commits at redhat.com fedora-security-commits at redhat.com
Mon May 26 09:00:06 UTC 2008


Author: thoger

Update of /cvs/fedora/fedora-security/tools/scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4367/tools/scripts

Modified Files:
	add-issue 
Log Message:
handle --since as mutli-value option, same as --bugs



Index: add-issue
===================================================================
RCS file: /cvs/fedora/fedora-security/tools/scripts/add-issue,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- add-issue	13 May 2008 15:56:20 -0000	1.7
+++ add-issue	26 May 2008 08:59:36 -0000	1.8
@@ -7,13 +7,13 @@
 # XXX: debug, dryrun
 my $usage = 'add-issue [options...]
 	--versions=<ver>[,...]	Affected Fedora versions
-	--bugs=<bug>[,...]]	Tracking bugs for respective versions
+	--bugs=<bug>[,...]	Tracking bugs for respective versions
 	--need_verif		Needs verification (**)
 	--cve=<cve>		CVE name
 	--status=<status>	Either "fixed" or "ignore" or implied "VULNERABLE"
 	--component=<pkg>	Affected package, to find owner to CC (mandatory)
 	--fixed=<version>	"fixed ..." or "not fixed ..."
-	--since=<update>	Fedora update or NVR this was fixed in
+	--since=<update>[,...]	Fedora update or NVR this was fixed in
 	--comment=<comment>	Free-form comment string
 ';
 
@@ -32,7 +32,7 @@
 
 # Command line options
 my (@versions, @bugs, $need_verif, $cve, $status, $component,
-	$fixed, $since, $comment);
+	$fixed, @since, $comment);
 
 # Parse command line options
 
@@ -63,12 +63,15 @@
 	? split (/,/, $options{bugs})
 	: ();
 
+ at since = $options{since}
+	? split (/,/, $options{since})
+	: ();
+
 $need_verif	= ($options{need_verif} ? '**' : '');
 $cve		= ($options{cve}	or 'GENERIC-MAP-NOMATCH');
 $status		= ($options{status}	or 'VULNERABLE');
 $component	= ($options{component}) or die 'component argument is mandatory';
 $fixed		= ($options{fixed}	or '');
-$since		= ($options{since}	or '');
 $comment	= ($options{comment}	or '');
 
 # Add a line for each version
@@ -81,7 +84,7 @@
 		component	=> $component,
 		fixed		=> $fixed,
 		bug		=> shift @bugs,
-		since		=> $since,
+		since		=> shift @since,
 		comment		=> $comment,
 	};
 




More information about the Fedora-security-commits mailing list