commit:     70486f7f37870796975ce228751fee68c64cfc88
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 12 19:34:37 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 12 19:34:37 2022 +0000
URL:        https://gitweb.gentoo.org/proj/tatt.git/commit/?id=70486f7f

scriptwriter.py: only query rdeps site if rdeps config > 0

No point fetching if we're not testing any.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 tatt/scriptwriter.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tatt/scriptwriter.py b/tatt/scriptwriter.py
index 4d60e34..38437f5 100644
--- a/tatt/scriptwriter.py
+++ b/tatt/scriptwriter.py
@@ -120,7 +120,8 @@ def writerdepscript(job, config):
     for p in job.packageList:
         atom = p.packageCatName()
         pkgs.append(atom)
-        rdeps = rdeps + stablerdeps (atom, config)
+        if config['rdeps'] > 0:
+            rdeps = rdeps + stablerdeps (atom, config)
     if len(rdeps) == 0:
         print("No stable rdeps for " + job.name)
         return

Reply via email to