Bug 117766
| Summary: | up2date --get-source fails with yum repos in sources | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 3 | Reporter: | Paul Nasrat <nobody+pnasrat> | ||||
| Component: | up2date | Assignee: | Adrian Likins <alikins> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fanny Augustin <fmoquete> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 3.0 | CC: | elliot | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 4.2.38 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2005-09-23 21:57:10 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 119505 | ||||||
| Attachments: |
|
||||||
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 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. |
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.