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@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()
On Tue, 2013-10-08 at 11:37 +0200, Martin Kolman wrote:
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@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()
ACK.
anaconda-patches@lists.fedorahosted.org