[Rpm-metadata] createrepo testing please.

Jeff Sheltren sheltren at cs.ucsb.edu
Wed Jan 14 02:10:55 UTC 2004


On Tue, 2004-01-13 at 13:55, seth vidal wrote:
> 
> tell me anything that breaks. 

Hi Seth, tested this out on rh9 and fc1, both seemed to work fine (built
from the src rpm).  Tried it out with pretty much all the different
flags (except exclude).  Didn't feel like trying to get it working on
7.3 though, since apparently it needs a newer python than I've got. 
Anyway, nothing pressing, but I noticed a few things:

Personally I think it's great if a program needs input (like createrepo)
and doesn't get any, then it should output the --help message, or at
least something like - "use -h for help, idiot".  It's helpful for
people like me who don't know what they're doing :)  The current output
from the program is not so helpful:
----------
$ /usr/bin/createrepo
Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 345, in ?
    if sys.argv[1] == 'profile':
IndexError: list index out of range
----------


Also, I'm a bit confused about the -u option.  Does that mean where it
should output the xml files, because that doesn't seem to be what's
happening.

----------
$ createrepo -u .
Error: Only one directory allowed per run.
$ createrepo -u . rpms
21/21 - createrepo-0.1-1.src.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
$ ls *.xml.gz
ls: *.xml.gz: No such file or directory
----------
(it still gets saved in rpms/)

-Jeff




More information about the Rpm-metadata mailing list