Bug 143339
Summary: | up2date fails with IndexError | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | keith drewke <drewke> |
Component: | up2date | Assignee: | Bret McMillan <bretm> |
Status: | CLOSED CANTFIX | QA Contact: | Fanny Augustin <fmoquete> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | CC: | jos, mattdm, rayvd |
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: | 2006-10-29 15:11:57 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
keith drewke
2004-12-19 16:47:07 UTC
Does running: rm -f /var/spool/up2date/* fix the problem? Thanks. Porblem corrected. Can you explain why this error occured? This problems also occurs on RHEL4 up2date 4.4.5(.6) using yum repositories (I know yum is not supported for RHEL4, but it seems to be the same problem). This is how to reproduce it (on a fully updated system): rm -f /var/spool/up2date/* up2date --whatprovides=/bin/bash up2date And *now* update fails with the earlier mentioned stack trace. If you do the two up2date commands in the *reverse* order (also based on an empty spool dir), so first the normal up2date and then the --whatprovides version, everything works fine! After two hours of debugging and tracing, I think I found the error: in the file yumRepo.py, in function getObsoletes(), the line pkgList = rd.listPackages(channel, msgCallback, progressCallback) should read: pkgList = rd.listPackages(channel, msgCallback, progressCallback)[0] Will do some further checking, but my problem is gone. In my case, the index problem only occurred with an empty repository, but for non-empty repositories, the pkgList was in case of a non-empty spooldir *not* the list of packages the for-loop expects, so that behavior was wrong anyway! Fedora Core 3 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC5 updates or in the FC6 test release, reopen and change the version to match. Thank you! Closing per lack of response to previous comment. If this still occurs on FC3 or FC4 and is a security issue, please assign to Fedora Legacy and the appropriate version. The bug could also be filed against RHEL if it is relevant there. up2date has been replaced by pirut and pup in FC5 and FC6, the still fully supported versions of Fedora Core, so this bug will not be fixed unless it is a security issue. |