[makeupdates][PATCH] Fix warning message when package version is not found in Koji

Martin Kolman mkolman at redhat.com
Tue Oct 8 09:37:45 UTC 2013


Fix the autofetch warning message to report that a package with a given
version was not found.
Previously only the glob used for search was displayed in the warning message,
 which might be confusing, as there might be packages complying to the glob,
just not with the needed version.

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

diff --git a/scripts/makeupdates b/scripts/makeupdates
index 1d18de7..3cbb770 100755
--- a/scripts/makeupdates
+++ b/scripts/makeupdates
@@ -749,7 +749,11 @@ def get_rpm_from_Koji_thread(package, fedora_number, arch,
                 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))
+            if package.version_request:
+                print("%s %s in version %s %s was not found in Koji" % (
+                      prefix, package.name, package.version_request, package.version))
+            else:
+                print("%s in any version was not found in Koji" % (prefix, package.name))
 
 def main():
     cwd = os.getcwd()
-- 
1.8.3.1



More information about the anaconda-patches mailing list