Createrepo error on update repo
Andre Hernandez <[email protected]> Wed, 15 May 2013 16:47:55 -0700 (PDT)
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
--===============6494488962422820204== Content-Type: multipart/alternative; boundary="-1488538659-1510598844-1368661675=:86153" ---1488538659-1510598844-1368661675=:86153 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable ## Running on SLES 10 SP 3=0A=0A## Using createrepo 0.9.9 (latest commit at= <http://createrepo.baseurl.org/gitweb?p=3Dcreaterepo.git;a=3Dshortlog;h=3D= refs/heads/master>)=0A## Also latest YUM/sqlite3 packages for openSuSE=0A= =0Asdll5992:~ # rpm -qa | grep yum=0Ayum-metadata-parser-1.1.2-122.1.1.x86_= 64=0Apython-yum-3.4.3-7.1.x86_64=0Ayum-3.4.3-7.1.x86_64=0A=0Asdll5992:~ # r= pm -qa | grep sqlite=0Alibsqlite3-0-3.7.14.1-2.1.1.x86_64=0A=0A=0A## I crea= ted a 42k+ rpm repo (with sqlite db) without error=0A=0A=0A## I am not sure= if it is createrepo sending bad data to YUM api or YUM api sending bad dat= a to sqlite:=0A=0Asdll5992:~ # createrepo --update /data2/ftp/SLES11SP1=0AS= pawning worker 0 with 8387 pkgs=0ASpawning worker 1 with 8386 pkgs=0ATraceb= ack (most recent call last):=0A=A0 File "/usr/share/createrepo/genpkgmetada= ta.py", line 294, in <module>=0A=A0=A0=A0 main(sys.argv[1:])=0A=A0 File "/u= sr/share/createrepo/genpkgmetadata.py", line 268, in main=0A=A0=A0=A0 mdgen= .doPkgMetadata()=0A=A0 File "/usr/lib/python2.7/site-packages/createrepo/__= init__.py", line 411, in doPkgMetadata=0A=A0=A0=A0 self.writeMetadataDocs(p= ackages)=0A=A0 File "/usr/lib/python2.7/site-packages/createrepo/__init__.p= y", line 683, in writeMetadataDocs=0A=A0=A0=A0 save_keptpkgs(pkg)=0A=A0 Fil= e "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 608, in s= ave_keptpkgs=0A=A0=A0=A0 self.primaryfile.write(po.xml_dump_primary_metadat= a())=0A=A0 File "/usr/lib64/python2.7/site-packages/yum/packages.py", line = 1376, in xml_dump_primary_metadata=0A=A0=A0=A0 msg +=3D misc.to_unicode(sel= f._dump_format_items())=0A=A0 File "/usr/lib64/python2.7/site-packages/yum/= packages.py", line 1125, in _dump_format_items=0A=A0=A0=A0 msg +=3D self._d= ump_suggests_and_recommends()=0A=A0 File "/usr/lib64/python2.7/site-package= s/yum/packages.py", line 1186, in _dump_suggests_and_recommends=0A=A0=A0=A0= names =3D self.hdr[rpm.RPMTAG_SUGGESTSNAME]=0A=A0 File "/usr/lib64/python2= .7/site-packages/yum/sqlitesack.py", line 270, in __getattr__=0A=A0=A0=A0 r= aise KeyError, str(e)=0AKeyError: 'no such column: hdr'=0A=0A## If you coul= d point me in the right direction (like which yum/createrepo packages are c= ompatible with createrepo 0.9.9 using update)=0A=0A## I'm only looking to u= se createrepo to update the repo with sqlite DBs (to avoid XML parse error = with large repos).=0A=0A=0A=A0=0A-Andre Hernandez ---1488538659-1510598844-1368661675=:86153 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ar= ial, helvetica, sans-serif;font-size:14pt"><div>## Running on SLES 10 SP 3<= br></div><div style=3D"color: rgb(0, 0, 0); font-size: 18.6667px; font-fami= ly: arial,helvetica,sans-serif; background-color: transparent; font-style: = normal;">## Using createrepo 0.9.9 (latest commit at <http://createrepo.= baseurl.org/gitweb?p=3Dcreaterepo.git;a=3Dshortlog;h=3Drefs/heads/master>= ;)</div><div>## Also latest YUM/sqlite3 packages for openSuSE</div><div><br= ></div><div style=3D"color: rgb(0, 0, 0); font-size: 18.6667px; font-family= : arial,helvetica,sans-serif; background-color: transparent; font-style: no= rmal;">sdll5992:~ # rpm -qa | grep yum<br>yum-metadata-parser-1.1.2-122.1.1= .x86_64<br>python-yum-3.4.3-7.1.x86_64<br>yum-3.4.3-7.1.x86_64</div><div st= yle=3D"color: rgb(0, 0, 0); font-size: 18.6667px; font-family: arial,helvet= ica,sans-serif; background-color: transparent; font-style: normal;"><br></d= iv><div style=3D"color: rgb(0, 0, 0); font-size: 18.6667px; font-family: arial,hel= vetica,sans-serif; background-color: transparent; font-style: normal;">sdll= 5992:~ # rpm -qa | grep sqlite<br>libsqlite3-0-3.7.14.1-2.1.1.x86_64<br></d= iv><div><br></div><div style=3D"color: rgb(0, 0, 0); font-size: 18.6667px; = font-family: arial,helvetica,sans-serif; background-color: transparent; fon= t-style: normal;">## I created a 42k+ rpm repo (with sqlite db) without err= or<br><span></span></div><div style=3D"color: rgb(0, 0, 0); font-size: 18.6= 667px; font-family: arial,helvetica,sans-serif; background-color: transpare= nt; font-style: normal;"><span><br></span></div><div style=3D"color: rgb(0,= 0, 0); font-size: 18.6667px; font-family: arial,helvetica,sans-serif; back= ground-color: transparent; font-style: normal;"><span>## I am not sure if i= t is createrepo sending bad data to YUM api or YUM api sending bad data to = sqlite:</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 18.6667px= ; font-family: arial,helvetica,sans-serif; background-color: transparent; fo= nt-style: normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-size: = 18.6667px; font-family: arial,helvetica,sans-serif; background-color: trans= parent; font-style: normal;">sdll5992:~ # createrepo --update /data2/ftp/SL= ES11SP1<br>Spawning worker 0 with 8387 pkgs<br>Spawning worker 1 with 8386 = pkgs<br>Traceback (most recent call last):<br> File "/usr/share/creat= erepo/genpkgmetadata.py", line 294, in <module><br> = main(sys.argv[1:])<br> File "/usr/share/createrepo/genpkgmetadata.py= ", line 268, in main<br> mdgen.doPkgMetadata()<br> = File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 411, i= n doPkgMetadata<br> self.writeMetadataDocs(packages)<br>&= nbsp; File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line = 683, in writeMetadataDocs<br> save_keptpkgs(pkg)<br> File "/usr/lib/python2.7/site-packages/create= repo/__init__.py", line 608, in save_keptpkgs<br> self.pr= imaryfile.write(po.xml_dump_primary_metadata())<br> File "/usr/lib64/= python2.7/site-packages/yum/packages.py", line 1376, in xml_dump_primary_me= tadata<br> msg +=3D misc.to_unicode(self._dump_format_ite= ms())<br> File "/usr/lib64/python2.7/site-packages/yum/packages.py", = line 1125, in _dump_format_items<br> msg +=3D self._dump_= suggests_and_recommends()<br> File "/usr/lib64/python2.7/site-package= s/yum/packages.py", line 1186, in _dump_suggests_and_recommends<br> &n= bsp; names =3D self.hdr[rpm.RPMTAG_SUGGESTSNAME]<br> File "/usr= /lib64/python2.7/site-packages/yum/sqlitesack.py", line 270, in __getattr__= <br> raise KeyError, str(e)<br>KeyError: 'no such column:= hdr'</div><div style=3D"color: rgb(0, 0, 0); font-size: 18.6667px; font-family: arial,helvetica,sans-serif; background-color: transparent; fo= nt-style: normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-size: = 18.6667px; font-family: arial,helvetica,sans-serif; background-color: trans= parent; font-style: normal;">## If you could point me in the right directio= n (like which yum/createrepo packages are compatible with createrepo 0.9.9 = using update)<br></div><div style=3D"color: rgb(0, 0, 0); font-size: 18.666= 7px; font-family: arial,helvetica,sans-serif; background-color: transparent= ; font-style: normal;">## I'm only looking to use createrepo to update the = repo with sqlite DBs (to avoid XML parse error with large repos).<br><span>= </span></div><div style=3D"color: rgb(0, 0, 0); font-size: 18.6667px; font-= family: arial,helvetica,sans-serif; background-color: transparent; font-sty= le: normal;"><span><br></span></div><div> </div><div>-Andre Hernandez<= /div></div></body></html> ---1488538659-1510598844-1368661675=:86153-- --===============6494488962422820204== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Rpm-metadata mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/rpm-metadata --===============6494488962422820204==--