diff options
-rwxr-xr-x | scripts/tatt | 2 | ||||
-rw-r--r-- | 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 = [] |