[Rpm-maint] [rpm-software-management/rpm] Add error messages for url helper calls (PR #3041)
Panu Matilainen
notifications at github.com
Thu Apr 18 09:33:24 UTC 2024
There should be a test for the case where the urlhelper is missing - it's what we can easily test, and also happens to be the case we're also most interested in for the bug.
> $ ./tools/rpm --define "_urlhelper /not/there" -qp https://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/updates/39/Everything/x86_64/Packages/3/389-ds-base-snmp-2.4.5-1.fc39.x86_64.rpm
error: Could not find url helper: "/not/there"
error: open of https://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/updates/39/Everything/x86_64/Packages/3/389-ds-base-snmp-2.4.5-1.fc39.x86_64.rpm failed: No such file or directory
Like I said (elsewhere), I've poked at this thing before. And I remember now, the reason I abandoned it was because I didn't like the "improved" behavior that great either - the latter message is pretty misleading even if the reason is in the line above.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3041#issuecomment-2063440048
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3041/c2063440048 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240418/7e3079a5/attachment.html>
More information about the Rpm-maint
mailing list