Bug 53139

Summary: traceback after selection of skipped packages
Product: [Retired] Red Hat Linux Reporter: James Manning <jmm>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED CURRENTRELEASE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: gafton, mihai.ibanescu, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-09-04 17:31:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Manning 2001-09-04 14:22:04 UTC
Description of Problem:
RC1->RC2 up2date already completed in text mode.  doing up2date in GUI 
mode. after seeing the list of skipped packages and selecting 4 of them 
(i686 kernel, kernel-headers, kernel-source, XFree86-xfs), I get to the next 
screen "Available Package Updates", but the konsole I launched up2date 
from has a traceback on it:

jmm@jmm:/home/jmm> up2date
Traceback (innermost last):
  File "/usr/lib/python1.5/site-packages/libglade.py", line 28, in __call__
    ret = apply(self.func, a)
  File "/usr/share/rhn/up2date_client/gui.py", line 467, in 
onPackagePagePrepare    maxlength = max(map(lambda x: len(x[0]), 
self.pkgList)) * 8
ValueError: min() or max() of empty sequence

Version-Release number of selected component (if applicable):
up2date-2.6.0-7.x.37

How Reproducible:
100%

Steps to Reproduce:
1.  RC1->RC2 up2date
2.  RC2 up2date run
3.  select specified normally-skipped packages, click next

Actual Results:
traceback from above

Expected Results:
no traceback :)

Additional Information:
 the channel says 7.1.94, my redhat-release is 7.1.94, but the packages (like 
2.4.7-6 kernel) seem to be from 7.1.95.  I'm going to try and manually 
upgrade redhat-release and see if that changes behavior.

Comment 1 Adrian Likins 2001-09-04 17:31:43 UTC
hmm. Interesting.

Looks like all the packages you selected somehow got flagged as packages
to skip (kernel by name, Xfree-xfs by config file probabaly) and some
recently introduced gui code couldnt handle the pkgList being empty. 

Adding a check now that will/should fix this. Should be fix in 
the next version.