From c0469cfe50e5c4330d7256ab7c38c1ad538386e2 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Wed, 15 Aug 2018 21:37:48 +0200 Subject: add "-k" option This makes "-f file" be able to work also for keywording, not only stabilization. --- scripts/tatt | 14 +++++++++++++- tatt.1 | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/tatt b/scripts/tatt index 33fe8c8..3e0d56c 100755 --- a/scripts/tatt +++ b/scripts/tatt @@ -70,6 +70,11 @@ parser.add_option("-c", "--close", help="Resolve the given bugnumber with closing it, needs to be combined with -r", dest="close", action="store_true") +parser.add_option("-k", "--keywording", + help="search for keywording packages, needs to be combined with -f", + dest="keywording", + action="store_true", + default = False) parser.add_option("-m", "--message", help="Message for bug resolution.", dest="resolvemessage", @@ -129,7 +134,14 @@ if options.infile: sys.exit(1) packraw = packfile.read() packfile.close() - myJob.packageList = packageFinder.findPackages(packraw, config['arch']) + targetarch = config['arch'] + if options.keywording: + targetarch = '~' + targetarch + myJob.type="keyword" + else: + myJob.type="stable" + + myJob.packageList = packageFinder.findPackages(packraw, targetarch) ## -b and a bugnumber was given ? if options.bugnum: diff --git a/tatt.1 b/tatt.1 index 18e16a1..191119e 100644 --- a/tatt.1 +++ b/tatt.1 @@ -40,6 +40,9 @@ Resolve the given bugnumber with closing it, needs to be combined with -r \fB-m RESOLVEMESSAGE, --message=RESOLVEMESSAGE\fI Message for bug resolution. .TP +\fB-k, --keywording\fI +Search for keywording packages, needs to be combined with -f +.TP \fB-v, --verbose\fI Print informative output. -- cgit v1.2.3-65-gdbad