Description of problem: Adding jpackage repos to RHEL ES and running up2date --get-source fails. [pauln@deathstar repoBackends]$ sudo up2date --get-source log4j Fetching all package list for channel: rhel-i386-es-3... ######################################## Fetching all package list for channel: jpackage-free... Traceback (most recent call last): File "/usr/sbin/up2date", line 1190, in ? sys.exit(main() or 0) File "/usr/sbin/up2date", line 687, in main return getPackages(pkgNames, source=1) File "/usr/sbin/up2date", line 948, in getPackages progressCallback = wrapperUtils.percent) File "rhnPackageInfo.py", line 263, in getAllAvailableAllArchPackageList File "rhnPackageInfo.py", line 202, in allAvailablePackageList File "rpcServer.py", line 112, in doCall File "repoDirector.py", line 23, in listAllPackages File "/usr/share/rhn/up2date_client/rpmSource.py", line 238, in listAllPackages msgCallback, progressCallback) File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line 281, in listAllPackages return self.listPackages(channel, version, msgCallback, progressCallback) TypeError: listPackages() takes at most 4 arguments (5 given) Version-Release number of selected component (if applicable): up2date-4.2.5-1 How reproducible: Always Steps to Reproduce: 1. add to /etc/sysconfing/rhn/sources yum jpackage-free ftp://jpackage.hmdc.harvard.edu/JPackage/1.5/generic/free 2. up2date --get-source log4j Actual results: Trace above Expected results: it works Additional info: Fixed patch to follow.
Created attachment 98367 [details] Patch to fix yumRepo This fixes --get-source for me
Further investigation shows that there are probably more fixes that need to be done. Just tried adding another repo and it fails. I'll try and get some more information, but you may have seen this before. [pauln@deathstar tmp]$ grep -e ^yum /etc/sysconfig/rhn/sources yum vs-stuff http://cachalot.mine.nu/1 [pauln@deathstar tmp]$ sudo up2date -l Password: Fetching package list for channel: vs-stuff... Fetching http://cachalot.mine.nu/1/headers/header.info... ######################################## Fetching Obsoletes list for channel: vs-stuff... Fetching rpm headers... Name Version Rel ---------------------------------------------------------- [pauln@deathstar tmp]$ sudo up2date --get-source bugzilla D: opening db environment /var/lib/rpm/Packages joinenv D: opening db index /var/lib/rpm/Packages rdonly mode=0x0 D: locked db index /var/lib/rpm/Packages D: opening db index /var/lib/rpm/Name rdonly mode=0x0 D: availablePackageList::channels: <up2date_client.rhnChannel.rhnChannelList instance at 0x8364384> Fetching all package list for channel: vs-stuff... D: add instance class name diskcache D: add instance class name yum Fetching http://cachalot.mine.nu/1/headers/header.info... D: add instance class name diskcache D: add instance class name yum Fetching http://cachalot.mine.nu/1/headers/header.info... D: add instance class name diskcache D: add instance class name yum ... untill I Ctrl-C
Ignore comment 2 - it seems to be a repo issue.
apt/dir/yumrepo support in rhel is pretty broken, I'll take a look at trying to fix for u3
should be fixed in 4.2.9
Any idea when 4.2.9 is going to be released?
Definately fixed in 4.2.38 which is going out Real Soon Now[tm] so... PROD_READYing this.