FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

LinkBack Thread Tools
Old 03-13-2010, 06:57 PM
"David C. Rankin"
Default Something really wrong with yum-createrepo from AUR - doesn't work.


The yum-createrepo package seems not to be the same as the createrepo package
that you normally see. Specifically executing the yum-createrepo script with the
help option discloses:

[13:35 nirvana:/home/backup/rpms] # createrepo --help
Usage: genpkgmetadata.py [options]

--version show program's version number and exit
-h, --help show this help message and exit
-q, --quiet output nothing except for serious errors
-v, --verbose output more debugging info.

Huh?? Usage: genpkgmetadata.py [options]

genpkgmetadata.py is part of createrepo, but the expected output is:

13:38 nemesis:~> createrepo --help

createrepo [options] directory-of-packages

-u, --baseurl <url> = optional base url location for all files
-o, --outputdir <dir> = optional directory to output to
-x, --exclude = files globs to exclude, can be specified multiple times
-q, --quiet = run quietly

The AUR package doesn't seem to be looking for the correct input. You can't
create or update a repository without specifying where the repository is??
However, the packages do share many of the same options "-p pretty, -d create
sqlite dbs, etc..", but regardless, running the yum-createrepo from AUR fails:

[13:41 nirvana:/home/backup/rpms] # createrepo --update -d factory_11.0/
Traceback (most recent call last):
File "/usr/share/createrepo/genpkgmetadata.py", line 249, in <module>
File "/usr/share/createrepo/genpkgmetadata.py", line 223, in main
File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 367, in
File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 531, in
self.primaryfile.write(po.xml_dump_primary_metadat a())
File "/usr/lib/python2.6/site-packages/yum/packages.py", line 1082, in
msg += misc.to_unicode(self._dump_format_items())
File "/usr/lib/python2.6/site-packages/yum/packages.py", line 967, in
msg += self._dump_requires()
File "/usr/lib/python2.6/site-packages/yum/packages.py", line 1022, in
mylist = self._requires_with_pre()
File "/usr/lib/python2.6/site-packages/yum/packages.py", line 1278, in
pre = map(self._is_pre_req, lst)
File "/usr/lib/python2.6/site-packages/yum/packages.py", line 1268, in _is_pre_req
AttributeError: 'module' object has no attribute 'RPMSENSE_PREREQ'

Anybody have an idea what is going on? I think if the errors are corrected it
will work, but I'm nut sure the PKGCONFIG is putting all the pieces together
correctly. I guess I'll try just putting the package together from source and
compare what is going on, but if anybody has any ideas, I would welcome the
input and help.

David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339

Thread Tools

All times are GMT. The time now is 05:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org