[PATCH 2/2] Report if a package was not found in Koji during autofetch

Martin Kolman mkolman at redhat.com
Thu Aug 15 12:49:35 UTC 2013


If the script reports that a package was not found in Koji,
it most probably means that a wrong dependency was specified
in the Anaconda specfile.
So makeupdates is now now also a simple Anaconda specfile
dependency validator. :)

Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 scripts/makeupdates | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/makeupdates b/scripts/makeupdates
index 855d6e2..306d227 100755
--- a/scripts/makeupdates
+++ b/scripts/makeupdates
@@ -526,6 +526,9 @@ def get_rpm_from_Koji_thread(package, fedora_number, arch,
         else:
             with print_lock:
                 print("%s download failed: %s @ %s" % (prefix, rpm_name, url))
+    else:
+        with print_lock:
+            print("%s warning: %s not found in Koji" % (prefix, package_glob))
 
 def main():
     cwd = os.getcwd()
-- 
1.8.3.1



More information about the anaconda-patches mailing list