From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4.2) Gecko/20040301 Description of problem: I have made a yum repository for all rpms from U2 in it. (dled all 4 isos and put the rpms in one dir) Up2date ran fine with original version so I updated everything to U2 with my yum repository. But it crashes when I run up2date now. (Newer up2date, same channel) [root@localhost root]# up2date -u Fetching package list for channel: u2... Fetching http://servername:8080/u2beta/headers/header.info... ######################################## ####################################### Fetching Obsoletes list for channel: u2... Traceback (most recent call last): File "/usr/sbin/up2date", line 1186, in ? sys.exit(main() or 0) File "/usr/sbin/up2date", line 772, in main fullUpdate, dryRun=options.dry_run)) File "/usr/sbin/up2date", line 1065, in batchRun batch.run() File "up2dateBatch.py", line 58, in run File "up2dateBatch.py", line 99, in __findPackagesToUpdate File "packageList.py", line 515, in getPackagesToInstall File "packageList.py", line 395, in __findObsoletingPackages TypeError: int() argument must be a string or a number Version-Release number of selected component (if applicable): up2date-4.2.8-1 How reproducible: Always Steps to Reproduce: 1. up2date -u 2. see it crash 3. Actual Results: up2date crashes with: [root@localhost root]# up2date -u Fetching package list for channel: u2... Fetching http://servername:8080/u2beta/headers/header.info... ######################################## ####################################### Fetching Obsoletes list for channel: u2... Traceback (most recent call last): File "/usr/sbin/up2date", line 1186, in ? sys.exit(main() or 0) File "/usr/sbin/up2date", line 772, in main fullUpdate, dryRun=options.dry_run)) File "/usr/sbin/up2date", line 1065, in batchRun batch.run() File "up2dateBatch.py", line 58, in run File "up2dateBatch.py", line 99, in __findPackagesToUpdate File "packageList.py", line 515, in getPackagesToInstall File "packageList.py", line 395, in __findObsoletingPackages TypeError: int() argument must be a string or a number Expected Results: Tell me there is nothing to update Additional info: Original up2date ran fine. I updated my install with all packages.
Created attachment 99108 [details] My sources file My sources file with just one yum entry.
Next fedora push should have a fix for this (4.3.15 or higher)
Sorry, it's still not working: [root@localhost root]# rpm -qa|grep up2date up2date-4.3.15-2 up2date-gnome-4.3.15-2 [root@localhost root]# up2date -u Fetching Obsoletes list for channel: u2beta... Traceback (most recent call last): File "/usr/sbin/up2date", line 1271, in ? sys.exit(main() or 0) File "/usr/sbin/up2date", line 799, in main fullUpdate, dryRun=options.dry_run)) File "/usr/sbin/up2date", line 1147, in batchRun batch.run() File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 62, in run self.__findPackagesToUpdate() File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 108, in __findPackagesToUpdate self.availableUpdates = plist.getPackagesToInstall() File "/usr/share/rhn/up2date_client/packageList.py", line 574, in getPackagesToInstall self.__findObsoletingPackages() File "/usr/share/rhn/up2date_client/packageList.py", line 454, in __findObsoletingPackages if op & int(obsSense): TypeError: int() argument must be a string or a number [root@localhost root]# Still same /etc/sysconfig/rhn/sources file.
You may need to blow away the cached obsoletes files in /var/spool/up2date Also, I misread the bug as a fedora bug. Sorry about pointing you at a fedora update (though, that code should work). I'll make sure the fix goes into the next rhel3 update.
I emptied the /var/spool/up2date directory. Now it works. Thank you.
Closing then.