diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2017-11-06 20:38:14 +0100 |
---|---|---|
committer | kensington <kensington@gentoo.org> | 2017-11-07 11:02:28 +1100 |
commit | 9ed6905a18dd13071ec3ef01130f59026f0bde33 (patch) | |
tree | 886bbb94ba765863e2f857e288cf82dfa5756bfd | |
parent | fix printing out message about cut rdeps (diff) | |
download | tatt-9ed6905a18dd13071ec3ef01130f59026f0bde33.tar.gz tatt-9ed6905a18dd13071ec3ef01130f59026f0bde33.tar.bz2 tatt-9ed6905a18dd13071ec3ef01130f59026f0bde33.zip |
try ~arch for keywording bugs if searching for arch gives no packages
-rwxr-xr-x | scripts/tatt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/tatt b/scripts/tatt index c9fdbee..38192a3 100755 --- a/scripts/tatt +++ b/scripts/tatt @@ -154,6 +154,8 @@ if options.bugnum: if myJob.packageList==None: if response["cf_stabilisation_atoms"]: myJob.packageList = packageFinder.findPackages(response["cf_stabilisation_atoms"], config['arch']) + if len(myJob.packageList) == 0 and ("KEYWORDREQ" in response["keywords"] or response["component"] == "Keywording"): + myJob.packageList = packageFinder.findPackages(response["cf_stabilisation_atoms"], '~' + config['arch']) else: response = session.get(config["bugzilla-url"] + "/rest/bug/{}/attachment".format(options.bugnum), params=params).json()["bugs"][str(options.bugnum)] for attachment in response: |