Bug 129729 - up2date doesn't like yum archives
Summary: up2date doesn't like yum archives
Keywords:
Status: CLOSED DUPLICATE of bug 129215
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: up2date
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Adrian Likins
QA Contact: Fanny Augustin
URL:
Whiteboard:
Depends On:
Blocks: up2date-rhel3-u3
TreeView+ depends on / blocked
 
Reported: 2004-08-12 09:04 UTC by John Haxby
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:05:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Haxby 2004-08-12 09:04:03 UTC
Description of problem:

If you configure a yum archive in /etc/sysconfig/rhn/sources for example:

   yum packages http://<hostname>/packages

and then run "up2date --dry-run --update" you'll get this backtrace:

Traceback (most recent call last):
  File "/usr/sbin/up2date", line 1174, in ?
    sys.exit(main() or 0)
  File "/usr/sbin/up2date", line 772, in main
    fullUpdate, dryRun=options.dry_run))
  File "/usr/sbin/up2date", line 1066, in batchRun
    batch.run()
  File "up2dateBatch.py", line 62, in run
  File "up2dateBatch.py", line 97, in __findPackagesToUpdate
  File "packageList.py", line 157, in addGlobs
  File "rhnPackageInfo.py", line 232, in getAvailablePackageList
  File "rhnPackageInfo.py", line 166, in availablePackageList
  File "rpcServer.py", line 304, in doCall
  File "repoDirector.py", line 20, in listPackages
  File "rpmSource.py", line 226, in listPackages
  File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line
266, in listPackages
    hdr = rd.getHeader([name,ver,rel,epoch,arch, "0",channel['label']])
  File "repoDirector.py", line 31, in getHeader
  File "rpmSource.py", line 210, in getHeader
  File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line
100, in getHeader
    hdr = rpmUtils.readHeaderBlob(hdrBuf)
TypeError: readHeaderBlob() takes exactly 2 arguments (1 given)


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

up2date-4.2.33-1, rpm-4.2.3-1

Since this is the same version of up2date that's running on a non-beta
RHEL3 machine, it looks as though it's a compatability problem with
the two versions of RPM.   If it's because I've managed to get an
up2date from the base channel instead of the beta channel and the
problem is already resolved, please accept my apologies.

Comment 1 Adrian Likins 2004-08-17 17:59:18 UTC
this will be fixed in Update 3 (4.2.33 or higher package revisions)

Comment 2 Todd Warner 2004-08-26 23:40:19 UTC

*** This bug has been marked as a duplicate of 129215 ***

Comment 3 Red Hat Bugzilla 2006-02-21 19:05:06 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


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