Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/tatt:master commit in: tatt/, scripts/
Date: Fri, 11 Sep 2020 16:00:53
Message-Id: 1599764850.cc36b5e3e11a4b07b4b4ee0da8e58f8d2da296af.sam@gentoo
1 commit: cc36b5e3e11a4b07b4b4ee0da8e58f8d2da296af
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 20 18:13:23 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 10 19:07:30 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/tatt.git/commit/?id=cc36b5e3
7
8 tatt: Support file-only jobs via Nattka
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11 Closes: https://github.com/gentoo/tatt/pull/67
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 scripts/tatt | 2 +-
15 tatt/packageFinder.py | 8 ++++----
16 2 files changed, 5 insertions(+), 5 deletions(-)
17
18 diff --git a/scripts/tatt b/scripts/tatt
19 index 27e9b61..463e737 100755
20 --- a/scripts/tatt
21 +++ b/scripts/tatt
22 @@ -142,7 +142,7 @@ if options.infile:
23 else:
24 myJob.type="stable"
25
26 - myJob.packageList = packageFinder.findPackages(packraw, targetarch)
27 + myJob.packageList = packageFinder.findPackages(packraw, targetarch, get_repo_dir(config['repodir']))
28 ## -b and a bugnumber was given ?
29 if options.bugnum:
30 print("Bugnumber: " + options.bugnum)
31
32 diff --git a/tatt/packageFinder.py b/tatt/packageFinder.py
33 index 24c69ac..fe1256e 100644
34 --- a/tatt/packageFinder.py
35 +++ b/tatt/packageFinder.py
36 @@ -2,10 +2,10 @@
37 import subprocess
38 from .gentooPackage import gentooPackage as gP
39
40 -def findPackages (s, arch, repo, bugnum):
41 - """ Given a string s,
42 - and a string arch
43 - return all gentooPackages from that string that need actioning on that arch """
44 +def findPackages (s, arch, repo, bugnum=False):
45 + """ Given a string s, a string arch, a string path to the repo, and
46 + an integer bugnum, return all gentooPackages from that string
47 + that need actioning on that arch """
48
49 packages = []