aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-06-20 18:13:23 +0000
committerSam James <sam@gentoo.org>2020-09-10 19:07:30 +0000
commitcc36b5e3e11a4b07b4b4ee0da8e58f8d2da296af (patch)
tree5b427bc57006c46d059d21bda7f35dfef5c015f6
parenttool: Refactor repodir handling (diff)
downloadtatt-cc36b5e3e11a4b07b4b4ee0da8e58f8d2da296af.tar.gz
tatt-cc36b5e3e11a4b07b4b4ee0da8e58f8d2da296af.tar.bz2
tatt-cc36b5e3e11a4b07b4b4ee0da8e58f8d2da296af.zip
tatt: Support file-only jobs via Nattkav0.8
Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/tatt/pull/67 Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xscripts/tatt2
-rw-r--r--tatt/packageFinder.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/tatt b/scripts/tatt
index 27e9b61..463e737 100755
--- a/scripts/tatt
+++ b/scripts/tatt
@@ -142,7 +142,7 @@ if options.infile:
else:
myJob.type="stable"
- myJob.packageList = packageFinder.findPackages(packraw, targetarch)
+ myJob.packageList = packageFinder.findPackages(packraw, targetarch, get_repo_dir(config['repodir']))
## -b and a bugnumber was given ?
if options.bugnum:
print("Bugnumber: " + options.bugnum)
diff --git a/tatt/packageFinder.py b/tatt/packageFinder.py
index 24c69ac..fe1256e 100644
--- a/tatt/packageFinder.py
+++ b/tatt/packageFinder.py
@@ -2,10 +2,10 @@
import subprocess
from .gentooPackage import gentooPackage as gP
-def findPackages (s, arch, repo, bugnum):
- """ Given a string s,
- and a string arch
- return all gentooPackages from that string that need actioning on that arch """
+def findPackages (s, arch, repo, bugnum=False):
+ """ Given a string s, a string arch, a string path to the repo, and
+ an integer bugnum, return all gentooPackages from that string
+ that need actioning on that arch """
packages = []