Bug 56441 - up2date bombs out if it cannot download associated source RPM for a selected package
Summary: up2date bombs out if it cannot download associated source RPM for a selected ...
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: up2date
Version: 4.0
Hardware: i686
OS: Linux
Target Milestone: ---
: ---
Assignee: Adrian Likins
QA Contact: Jay Turner
Depends On:
TreeView+ depends on / blocked
Reported: 2001-11-18 15:00 UTC by Ray Price
Modified: 2015-01-07 23:53 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2002-04-29 23:01:05 UTC

Attachments (Terms of Use)

Description Ray Price 2001-11-18 15:00:47 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012

Description of problem:
up2date allowed me to select

to update, by default I have download the associated source package selected.

When up2date attempts to download the source RPMs for these packages it
error's and cancels the entire update process.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Be able to update to the mentioned RPM packages (as I know the source
RPM for them does not exist)
2. Try to update to them.
3. On trying to download the source RPM packes up2date errors and cancels
the entire process.

Actual Results:  up2date errors and cancels the entire process.

Expected Results:  The erro should be logged or message'd boxed - I don't
expect the entire process to cancel as it mines I have to download these
packages seperatly. Doing this is not a good user experience :-)

Additional info:

To work around this in my copy, I changed up2date.py such that...

def getPackage(pkg, msgCallback = None, progressCallback = None):
    if cfg.readEntry("retrieveSource"):
        s = getServer()
            pkgStream = up2date.source_package_by_name(getSystemId(),
        except xmlrpclib.Fault, f:
**            if f.faultCode == -17:
**                log.log_me("Failed: %s" % f.faultString)
**                return 1
**            else:
                raise CommunicationError(f.faultString)
Added the ** lines so that the cannot download error for a source RPM does
not cancel the entire process.

Works for me!! :-)

I'm sure something better can be done with the error.

Comment 1 Adrian Likins 2001-11-19 17:07:16 UTC
Well, if you cant download the src rpms the user asked for, I think
throwing up an error message is the correct thing to do for now. Ideally
we would throw up an error message and have some way to ignore it if
we like, but that will have to wait for the next version.

The real question is "why are source rpm downloads failing?"

Comment 2 David M. Cook 2002-04-18 00:42:00 UTC
The problem with ignoring missing source packages is: what status code do you
return when up2date exits?  It would need to be non-zero to be useful for
testing.  Admittedly, this is only a problem for testers, and a testers problem
shouldn't really be made a users problem.

Comment 3 Greg DeKoenigsberg 2002-04-29 23:01:00 UTC
So is it a bug or ain't it a bug?

Comment 4 Adrian Likins 2002-05-15 20:15:10 UTC
not a bug... if the download fails:

a). up2date didnt do what the user wanted. Thats a failure and shouldnt
    be ignore.

b) It means something is wrong with the server, and should be fixed.

Note You need to log in before you can comment on or make changes to this bug.