From cc36b5e3e11a4b07b4b4ee0da8e58f8d2da296af Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 20 Jun 2020 18:13:23 +0000 Subject: tatt: Support file-only jobs via Nattka Signed-off-by: Sam James Closes: https://github.com/gentoo/tatt/pull/67 Signed-off-by: Sam James --- scripts/tatt | 2 +- tatt/packageFinder.py | 8 ++++---- 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 = [] -- cgit v1.2.3-65-gdbad