diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2018-08-15 21:37:48 +0200 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2018-08-15 21:37:48 +0200 |
commit | c0469cfe50e5c4330d7256ab7c38c1ad538386e2 (patch) | |
tree | ab0a16f48d0766fe086e9f958b8475f07774f1a1 /scripts | |
parent | get rid of all FEATURES messing in the generator (diff) | |
download | tatt-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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tatt | 14 |
1 files changed, 13 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: |