[Git][security-tracker-team/security-tracker][master] add flag to exclude package from review

Antoine Beaupré anarcat at debian.org
Fri Nov 23 16:07:00 GMT 2018


Antoine Beaupré pushed to branch master at Debian Security Tracker / security-tracker


Commits:
51d5d6e3 by Antoine Beaupré at 2018-11-23T16:06:38Z
add flag to exclude package from review

- - - - -


1 changed file:

- bin/review-update-needed


Changes:

=====================================
bin/review-update-needed
=====================================
@@ -45,6 +45,8 @@ else:
     parser.add_argument('--unclaim', default=None, metavar='N', type=int,
                         nargs='?', const=604800,
                         help='Automatically unclaim entries older than N seconds (default: %(default)s)')
+parser.add_argument('--exclude', nargs='+', metavar='PACKAGE', default=[],
+                    help='completely ignore packages specified PACKAGE')
 args = parser.parse_args()
 if args.verbose and args.quiet:
     args.error("--verbose and --quiet contradiction")
@@ -111,8 +113,9 @@ for line in process.stdout:
                 'author': context['author'],
                 'note': '',
             }
-            per_user[entry['claimed-by']].append(entry['pkg'])
-            all_entries.append(entry)
+            if entry['pkg'] not in args.exclude:
+                per_user[entry['claimed-by']].append(entry['pkg'])
+                all_entries.append(entry)
 
 retcode = process.wait()
 if retcode != 0:



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/51d5d6e3d88a76ebbd9bbaa1e46f57f31909387e

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/51d5d6e3d88a76ebbd9bbaa1e46f57f31909387e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20181123/97874905/attachment-0001.html>


More information about the debian-security-tracker-commits mailing list