aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2018-08-15 21:37:48 +0200
committerRolf Eike Beer <eike@sf-mail.de>2018-08-15 21:37:48 +0200
commitc0469cfe50e5c4330d7256ab7c38c1ad538386e2 (patch)
treeab0a16f48d0766fe086e9f958b8475f07774f1a1
parentget rid of all FEATURES messing in the generator (diff)
downloadtatt-c0469cfe50e5c4330d7256ab7c38c1ad538386e2.tar.gz
tatt-c0469cfe50e5c4330d7256ab7c38c1ad538386e2.tar.bz2
tatt-c0469cfe50e5c4330d7256ab7c38c1ad538386e2.zip
add "-k" option
This makes "-f file" be able to work also for keywording, not only stabilization.
-rwxr-xr-xscripts/tatt14
-rw-r--r--tatt.13
2 files changed, 16 insertions, 1 deletions
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.