Red Hat Bugzilla – Bug 97699
srpm upload message needs to be more user friendly
Last modified: 2007-10-23 21:38:56 EDT
I received the following when trying to upload a set of RPMs that included SRPMS
Connecting to https://xmlrpc.rhn.redhat.com/XP
Traceback (innermost last):
File "/usr/bin/rhn_package_manager", line 29, in ?
File "/var/www/rhns/PackageManager/rhn_package_manager.py", line 92, in main
File "/var/www/rhns/PackageManager/uploadLib.py", line 230, in uploadHeaders
File "/var/www/rhns/PackageManager/uploadLib.py", line 352, in _processBatch
File "/var/www/rhns/PackageManager/uploadLib.py", line 310, in _processFile
h = get_header(None, f.fileno(), source)
File "/var/www/rhns/PackageManager/uploadLib.py", line 509, in get_header
raise UploadError("Unexpected RPM package type")
PackageManager.uploadLib.UploadError: Unexpected RPM package type
It would be nice if this exception spit out a "hey! you're trying to upload
SRPMS, but you didn't use the right options." message so that I would what to do
What would really be nice is if the tool simply determined what kind of RPM was
being uploaded and simply changed its behaviour on the fly.
Better error messages would be nice as well.
misa's tool... assigning to him.
Closing as WONTFIX. Please reopen if important.