Description of problem: "createrepo -C directory" and "createrepo --checkts directory" are broken. Version-Release number of selected component (if applicable): createrepo-0.9.5-2.fc9.noarch How reproducible: Always Steps to Reproduce: 1. set up a repository at mybasedir 2. createrepo mybasedir 3. add a package to the repository 4. createrepo -C mybasedir Actual results: The call to createrepo without -C works. The call with -C gives the following output: Traceback (most recent call last): File "/usr/share/createrepo/genpkgmetadata.py", line 175, in <module> main(sys.argv[1:]) File "/usr/share/createrepo/genpkgmetadata.py", line 153, in main if mdgen.checkTimeStamps(): File "/usr/lib/python2.5/site-packages/createrepo/__init__.py", line 249, in checkTimeStamps files = self.getFileList(self.conf.basedir, self.conf.directory, '.rpm') TypeError: getFileList() takes exactly 3 arguments (4 given) Expected results: The second call should rebuild the repository data, but only looking at files with timestamps later than the original data.
Hello: I'm pretty sure I'm seeing the symptoms of the same bug: [root@localhost Tue Jun 24 06:13:45 ~]# createrepo -vd -c /usr/src/redhat/RPMS/ i386/repodata/chksumcache/ /usr/src/redhat/RPMS/i386/ 1/48 - ... [...] 48/48 - ... Saving Primary metadata Saving file lists metadata Saving other metadata Generating sqlite DBs Starting other db creation: Tue Jun 24 06:14:52 2008 Ending other db creation: Tue Jun 24 06:14:52 2008 Starting filelists db creation: Tue Jun 24 06:14:52 2008 Ending filelists db creation: Tue Jun 24 06:14:53 2008 Starting primary db creation: Tue Jun 24 06:14:53 2008 (process:25554): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Parsing primary.xml error: PCDATA invalid Char value 8 (process:25554): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Parsing primary.xml error: Entity 'amp' not defined Traceback (most recent call last): File "/usr/share/createrepo/genpkgmetadata.py", line 175, in <module> main(sys.argv[1:]) File "/usr/share/createrepo/genpkgmetadata.py", line 159, in main mdgen.doRepoMetadata() File "/usr/lib/python2.5/site-packages/createrepo/__init__.py", line 558, in doRepoMetadata rp.getPrimary(complete_path, csum) File "/usr/lib/python2.5/site-packages/sqlitecachec.py", line 45, in getPrimary self.repoid)) TypeError: Parsing primary.xml error: PCDATA invalid Char value 8 [root@localhost Tue Jun 24 06:14:53 ~]# createrepo-0.9.5-2.fc9.noarch kernel-2.6.25.6-55.fc9.i686 Regards, VJS
Created attachment 317529 [details] Possible fix, from upstream git
I've confirmed the patch Ville posted in comment #2 works on my F9 i386 system with createrepo-0.9.5-2.fc9.noarch. Please can someone build and push an update for F9 with this patch....
updated f9 to createrepo 0.9.6 which includes this fix. look for 0.9.6-3 shortly.
createrepo-0.9.6-3.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/createrepo-0.9.6-3.fc9
createrepo-0.9.6-3.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.