commit:     cc36b5e3e11a4b07b4b4ee0da8e58f8d2da296af
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 20 18:13:23 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 10 19:07:30 2020 +0000
URL:        https://gitweb.gentoo.org/proj/tatt.git/commit/?id=cc36b5e3

tatt: Support file-only jobs via Nattka

Signed-off-by: Sam James <sam <AT> gentoo.org>
Closes: https://github.com/gentoo/tatt/pull/67
Signed-off-by: Sam James <sam <AT> gentoo.org>

 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 = []
 

Reply via email to