aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2017-11-06 20:38:14 +0100
committerkensington <kensington@gentoo.org>2017-11-07 11:02:28 +1100
commit9ed6905a18dd13071ec3ef01130f59026f0bde33 (patch)
tree886bbb94ba765863e2f857e288cf82dfa5756bfd
parentfix printing out message about cut rdeps (diff)
downloadtatt-9ed6905a18dd13071ec3ef01130f59026f0bde33.tar.gz
tatt-9ed6905a18dd13071ec3ef01130f59026f0bde33.tar.bz2
tatt-9ed6905a18dd13071ec3ef01130f59026f0bde33.zip
try ~arch for keywording bugs if searching for arch gives no packages
-rwxr-xr-xscripts/tatt2
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: