Ticket #12 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

createrepo-0.9.8-5.fc14 generates repodata unusable on RHEL4

Reported by: mdomsch Assigned to: skvidal
Priority: major Milestone:
Component: createrepo Version:
Keywords: Cc:

Description

createrepo-0.9.8-5.fc14.noarch is generating repodata that yum-2.4.3-4.el4.centos (and -0.5.el4) cannot parse, resulting in failure below. Downgrading to createrepo-0.4.11-3.el5 yields no failure.

createrepo -d -s sha to avoid the checksum problem (known).

# yum upgrade looks like:

File "/usr/bin/yum", line 29, in ?

yummain.main(sys.argv[1:])

File "/usr/share/yum-cli/yummain.py", line 97, in main

result, resultmsgs = do()

File "/usr/share/yum-cli/cli.py", line 486, in doCommands

return self.updatePkgs()

File "/usr/share/yum-cli/cli.py", line 955, in updatePkgs

self.doRepoSetup()

File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup

self.doSackSetup(thisrepo=thisrepo)

File "init.py", line 260, in doSackSetup File "repos.py", line 277, in populateSack File "sqlitecache.py", line 96, in getPrimary File "sqlitecache.py", line 89, in _getbase File "sqlitecache.py", line 359, in updateSqliteCache File "sqlitecache.py", line 251, in addPrimary File "sqlitecache.py", line 197, in insertHash File "sqlitecache.py", line 449, in values File "sqlitecache.py", line 441, in getitem File "mdparser.py", line 73, in getitem

KeyError?: 'sourcerpm' [root@rhel4 ~]# rpm -q yum yum-2.4.3-4.el4.centos [root@rhel4 ~]# rpm -q rpm rpm-4.3.3-26_nonptl

Attachments

primary.xml.gz.old (63.3 kB) - added by mdomsch on 02/03/11 05:30:22.
primary.xml.gz created with createrepo-0.4.11-3.el5
primary.xml.gz.new (61.2 kB) - added by mdomsch on 02/03/11 05:31:02.
primary.xml.gz created with createrepo-0.9.8-5.fc14.noarch
yum.patch (0.7 kB) - added by mdomsch on 02/03/11 06:16:15.
yum.patch by skvidal resolves the problem

Change History

02/03/11 05:30:22 changed by mdomsch

  • attachment primary.xml.gz.old added.

primary.xml.gz created with createrepo-0.4.11-3.el5

02/03/11 05:31:02 changed by mdomsch

  • attachment primary.xml.gz.new added.

primary.xml.gz created with createrepo-0.9.8-5.fc14.noarch

02/03/11 05:47:20 changed by skvidal

the old primary puts a

<rpm:sourcerpm/> on pkgs which lack a sourcerpm field in the tags

the new one doesn't it just leaves out that tag.

So our choices are: 1. change createrepo so it writes out that tag no matter what 2. change y-m-p in centos4 to behave better w/o a sourcerpm.

02/03/11 06:16:15 changed by mdomsch

  • attachment yum.patch added.

yum.patch by skvidal resolves the problem

02/03/11 06:16:40 changed by mdomsch

  • status changed from new to closed.
  • resolution set to fixed.