tools/createrepo.git
16 years agowhen we process the rpms only do the drpm creation.
Seth Vidal [Mon, 9 Feb 2009 23:20:53 +0000 (18:20 -0500)]
when we process the rpms only do the drpm creation.
after we're done take the drpms and generate the metadata from there

16 years agosome fixes and to make it work on rhel5/python2.4
Seth Vidal [Tue, 3 Feb 2009 22:54:32 +0000 (17:54 -0500)]
some fixes and to make it work on rhel5/python2.4

16 years agoand one more mistake
Seth Vidal [Tue, 3 Feb 2009 14:08:25 +0000 (09:08 -0500)]
and one more mistake

16 years agocorrect tabbing so createrepo works when you're NOT using deltas
Seth Vidal [Tue, 3 Feb 2009 14:06:30 +0000 (09:06 -0500)]
correct tabbing so createrepo works when you're NOT using deltas

16 years agoadd --num-deltas option
Seth Vidal [Thu, 29 Jan 2009 15:11:32 +0000 (10:11 -0500)]
add --num-deltas option

16 years agoMerge branch 'master' of ssh://createrepo.baseurl.org/srv/projects/createrepo/git...
Seth Vidal [Thu, 29 Jan 2009 05:58:00 +0000 (00:58 -0500)]
Merge branch 'master' of ssh://createrepo.baseurl.org/srv/projects/createrepo/git/createrepo

* 'master' of ssh://createrepo.baseurl.org/srv/projects/createrepo/git/createrepo:
  Add missing documentation on --checksum and --profile

16 years ago--deltas, enable the creation and metadata-creation for presto/deltarpms
Seth Vidal [Thu, 29 Jan 2009 05:55:57 +0000 (00:55 -0500)]
--deltas, enable the creation and metadata-creation for presto/deltarpms

16 years agoMerge branch 'master' of ssh://yum.baseurl.org/srv/projects/createrepo/git/createrepo
James Antill [Tue, 27 Jan 2009 17:19:38 +0000 (12:19 -0500)]
Merge branch 'master' of ssh://yum.baseurl.org/srv/projects/createrepo/git/createrepo

* 'master' of ssh://yum.baseurl.org/srv/projects/createrepo/git/createrepo:
  make modifyrepo behave with sha256 as the default checksum

16 years agoAdd missing documentation on --checksum and --profile
James Antill [Tue, 27 Jan 2009 17:19:31 +0000 (12:19 -0500)]
Add missing documentation on --checksum and --profile

16 years agomake modifyrepo behave with sha256 as the default checksum
Seth Vidal [Tue, 27 Jan 2009 16:20:54 +0000 (11:20 -0500)]
make modifyrepo behave with sha256 as the default checksum

16 years agomake sha256 the default checksum type everywhere
Seth Vidal [Mon, 26 Jan 2009 15:30:05 +0000 (10:30 -0500)]
make sha256 the default checksum type everywhere

16 years agoadd init options to specify your own yumbase object, mdconf object md generator class
Seth Vidal [Fri, 23 Jan 2009 22:27:22 +0000 (17:27 -0500)]
add init options to specify your own yumbase object, mdconf object md generator class

16 years agomake sure we keep working on python 2.4 :(
Seth Vidal [Thu, 22 Jan 2009 21:33:19 +0000 (16:33 -0500)]
make sure we keep working on python 2.4 :(

16 years agouse gzip.name not gzip.filename to avoid python 2.6 deprecation warnings
Seth Vidal [Thu, 22 Jan 2009 21:29:06 +0000 (16:29 -0500)]
use gzip.name not gzip.filename to avoid python 2.6 deprecation warnings

16 years agoget rid of the md5 badness - use yum's Checksum class so we don't have to deal
Seth Vidal [Thu, 22 Jan 2009 21:22:20 +0000 (16:22 -0500)]
get rid of the md5 badness - use yum's Checksum class so we don't have to deal
with python 2.4 vs 2.6isms

16 years agoadd --profile option to the cli interface so profile info is outputted
Seth Vidal [Thu, 22 Jan 2009 16:30:08 +0000 (11:30 -0500)]
add --profile option to the cli interface so profile info is outputted
only when it is used.

16 years agoUse correct cachedir after rename
James Antill [Mon, 19 Jan 2009 14:52:32 +0000 (09:52 -0500)]
Use correct cachedir after rename

16 years agoallow alternative path for --update via --update-md-path, So your old repodata
Seth Vidal [Wed, 17 Dec 2008 21:49:01 +0000 (16:49 -0500)]
allow alternative path for --update via --update-md-path, So your old repodata
does not have to be in the path you want to look through.

16 years agotry/excepts on modifyrepo so we don't smack the user with a traceback
Seth Vidal [Wed, 29 Oct 2008 03:27:03 +0000 (23:27 -0400)]
try/excepts on modifyrepo so we don't smack the user with a traceback

16 years agoremerge changelog
Seth Vidal [Tue, 28 Oct 2008 19:57:59 +0000 (15:57 -0400)]
remerge changelog

16 years agominor changes to the make file so that it will make a proper archive :)
Seth Vidal [Tue, 28 Oct 2008 19:35:42 +0000 (15:35 -0400)]
minor changes to the make file so that it will make a proper archive :)

16 years agomerge changelog
Seth Vidal [Mon, 27 Oct 2008 21:30:16 +0000 (17:30 -0400)]
merge changelog

16 years agoallow already-compressed metadata files to work and not be double-compressed
Seth Vidal [Thu, 23 Oct 2008 20:47:41 +0000 (16:47 -0400)]
allow already-compressed metadata files to work and not be double-compressed

16 years agomergerepo man page
Seth Vidal [Tue, 21 Oct 2008 19:33:51 +0000 (15:33 -0400)]
mergerepo man page
todos added to mergerepo

16 years agoMerge branch 'master' of ssh://createrepo.baseurl.org/srv/projects/createrepo/git...
Seth Vidal [Tue, 21 Oct 2008 18:35:19 +0000 (14:35 -0400)]
Merge branch 'master' of ssh://createrepo.baseurl.org/srv/projects/createrepo/git/createrepo

* 'master' of ssh://createrepo.baseurl.org/srv/projects/createrepo/git/createrepo:
  Change the NamedTemporaryFile() usage to mkstemp(), stupid API
  Fix parallel updates to the cachedir, thx to Michael Schwendt for spotting it

16 years ago- document --content, --distro and --revision
Seth Vidal [Tue, 21 Oct 2008 18:22:12 +0000 (14:22 -0400)]
- document --content, --distro and --revision
- update urls in spec and docs
- add Authors file

16 years agoadd merge repo here, too
Seth Vidal [Fri, 17 Oct 2008 20:23:48 +0000 (16:23 -0400)]
add merge repo here, too

16 years agopylintian cleanups
Seth Vidal [Fri, 17 Oct 2008 20:04:43 +0000 (16:04 -0400)]
pylintian cleanups

16 years agobump version to 0.9.6 - change the dep to yum 3.2.20 - since it is
Seth Vidal [Fri, 17 Oct 2008 19:56:16 +0000 (15:56 -0400)]
bump version to 0.9.6 - change the dep to yum 3.2.20 - since it is
what WILL be needed

16 years agoadd mergerepo
Seth Vidal [Fri, 17 Oct 2008 19:54:19 +0000 (15:54 -0400)]
add mergerepo

16 years agoadd arbitrary metadata to config options for api callers
Seth Vidal [Fri, 17 Oct 2008 19:31:31 +0000 (15:31 -0400)]
add arbitrary metadata to config options for api callers

16 years agoChange the NamedTemporaryFile() usage to mkstemp(), stupid API
James Antill [Thu, 9 Oct 2008 17:42:39 +0000 (13:42 -0400)]
Change the NamedTemporaryFile() usage to mkstemp(), stupid API

16 years agoFix parallel updates to the cachedir, thx to Michael Schwendt for spotting it
James Antill [Wed, 8 Oct 2008 16:42:24 +0000 (12:42 -0400)]
Fix parallel updates to the cachedir, thx to Michael Schwendt for spotting it

16 years agobump the yum requirement to 3.2.19..
Seth Vidal [Mon, 15 Sep 2008 20:45:39 +0000 (16:45 -0400)]
bump the yum requirement to 3.2.19..

16 years agoremove unused utf8String function from utils - move most of it into yum.misc
Seth Vidal [Mon, 15 Sep 2008 20:43:56 +0000 (16:43 -0400)]
remove unused utf8String function from utils - move most of it into yum.misc

16 years agomake the profile option work again
Seth Vidal [Fri, 12 Sep 2008 18:36:51 +0000 (14:36 -0400)]
make the profile option work again

16 years agoremove most of the yumbased code, disable database-only for now
Seth Vidal [Wed, 13 Aug 2008 16:25:16 +0000 (12:25 -0400)]
remove most of the yumbased code, disable database-only for now

16 years agominor changes for handling a packagesack and/or list of package objects as the pkglis...
Seth Vidal [Fri, 8 Aug 2008 19:40:46 +0000 (15:40 -0400)]
minor changes for handling a packagesack and/or list of package objects as the pkglist to create
the repo from also rename the xml_dump functions - eventually going to remove them.

17 years agoAdd missing doc. for --skip-stat option
James Antill [Tue, 17 Jun 2008 05:23:19 +0000 (01:23 -0400)]
Add missing doc. for --skip-stat option

17 years agosome fixmes and starts - and recommit a working --database-only
Seth Vidal [Thu, 5 Jun 2008 16:06:04 +0000 (12:06 -0400)]
some fixmes and starts - and recommit a working --database-only

17 years agoRemove -n option, it's a noop atm. anyway
James Antill [Mon, 12 May 2008 12:49:39 +0000 (08:49 -0400)]
Remove -n option, it's a noop atm. anyway

17 years agoPass just dir. to getFileList(), makes -C work. Fixes bug#446040
James Antill [Mon, 12 May 2008 12:48:17 +0000 (08:48 -0400)]
Pass just dir. to getFileList(), makes -C work. Fixes bug#446040

17 years agoTalk to libxml maintainer ... tweak
James Antill [Wed, 16 Apr 2008 15:22:40 +0000 (11:22 -0400)]
Talk to libxml maintainer ... tweak

17 years agoJust remove bad small bytes, like 0x01 atm.
James Antill [Wed, 16 Apr 2008 14:34:10 +0000 (10:34 -0400)]
Just remove bad small bytes, like 0x01 atm.

17 years agoAdd some missing options to man page
James Antill [Wed, 2 Apr 2008 14:00:53 +0000 (10:00 -0400)]
Add some missing options to man page

17 years agoa few tweaks to speed up the database creation
Seth Vidal [Tue, 11 Mar 2008 21:17:16 +0000 (17:17 -0400)]
a few tweaks to speed up the database creation

17 years agomore or less complete createrepo --database-only
Seth Vidal [Tue, 11 Mar 2008 20:18:19 +0000 (16:18 -0400)]
more or less complete createrepo --database-only

17 years ago- partial patch to enable --database-only output from createrepo
Seth Vidal [Tue, 11 Mar 2008 05:33:28 +0000 (01:33 -0400)]
- partial patch to enable --database-only output from createrepo
- still to implement filelists direct to sqlite, changelogs direct to sqlite
- this check in is just a hedge against loss from my laptop, do not use the feature in this commit

17 years agobetter name for node
Seth Vidal [Mon, 3 Mar 2008 16:35:47 +0000 (11:35 -0500)]
better name for node

17 years agoexclude rpmlib requires from metadata b/c they are silly
Seth Vidal [Mon, 3 Mar 2008 15:58:52 +0000 (10:58 -0500)]
exclude rpmlib requires from metadata b/c they are silly
store them in the repomd.xml per-repo so we have them if we ever actually need them

17 years agoFix line overflow, minor IO optimisation
James Antill [Fri, 29 Feb 2008 21:12:32 +0000 (16:12 -0500)]
Fix line overflow, minor IO optimisation

17 years agoallow --pkglist or self.conf.pkglist to be a list of arbitrary
Seth Vidal [Wed, 20 Feb 2008 20:22:49 +0000 (15:22 -0500)]
allow --pkglist or self.conf.pkglist to be a list of arbitrary
urls to packages. createrepo will download the remote urls to
a tempdir, read them in and add them to the metadata.

17 years agomerge changelog
Seth Vidal [Mon, 18 Feb 2008 20:29:08 +0000 (15:29 -0500)]
merge changelog

17 years agobump version numbers
Seth Vidal [Mon, 18 Feb 2008 18:18:53 +0000 (13:18 -0500)]
bump version numbers

17 years ago- clean up some garbage spaces and an extra 'return'
Seth Vidal [Mon, 18 Feb 2008 18:09:39 +0000 (13:09 -0500)]
- clean up some garbage spaces and an extra 'return'
- write some notes on something interesting to do for completely arbitrary
  repositories
- make sure that under no circumstances will a package that we
  cannot get a pkgid/checksum from will be in the metadata. And it will
  output an error message

17 years agoraise, don't print
Seth Vidal [Wed, 13 Feb 2008 20:48:52 +0000 (15:48 -0500)]
raise, don't print

17 years agoClean up some more unused modules
Luke Macken [Tue, 12 Feb 2008 21:28:45 +0000 (16:28 -0500)]
Clean up some more unused modules

17 years agoIf we want to use MDError in utils.py, we need to define it outside of __init__ to...
Luke Macken [Tue, 12 Feb 2008 21:28:15 +0000 (16:28 -0500)]
If we want to use MDError in utils.py, we need to define it outside of __init__ to avoid circular deps

17 years agoPull in createrepo.utils.errorprint in our __init__ module.
Luke Macken [Tue, 12 Feb 2008 21:27:04 +0000 (16:27 -0500)]
Pull in createrepo.utils.errorprint in our __init__ module.

17 years agoImport shutil since we use it in createrepo.__init__
Luke Macken [Tue, 12 Feb 2008 21:26:22 +0000 (16:26 -0500)]
Import shutil since we use it in createrepo.__init__

17 years agos/conf.checkts/self.conf.checkts/
Luke Macken [Tue, 12 Feb 2008 21:25:57 +0000 (16:25 -0500)]
s/conf.checkts/self.conf.checkts/

17 years agoRemove a bunch of module imports that we aren't using.
Luke Macken [Tue, 12 Feb 2008 21:25:15 +0000 (16:25 -0500)]
Remove a bunch of module imports that we aren't using.
One of which being 'hashlib', which prevents createrepo from running on anything by Python 2.5.

17 years ago- make sure group files are compressed/sha-named
Seth Vidal [Fri, 1 Feb 2008 00:14:34 +0000 (19:14 -0500)]
- make sure group files are compressed/sha-named
- add group_gz section for compressed group file
- add addArbitraryMetadata() method to MetaDataGenerator class
- fix up modifyrepo to generate sha-named files
- make modifyrepo act a bit more like createrepo for its operations

17 years agochangelog merge
Seth Vidal [Wed, 30 Jan 2008 20:51:39 +0000 (15:51 -0500)]
changelog merge

17 years agomake sure things work out as the right default
Seth Vidal [Tue, 29 Jan 2008 15:06:12 +0000 (10:06 -0500)]
make sure things work out as the right default

17 years agobump ver to 0.9.4 in spec and module
Seth Vidal [Tue, 29 Jan 2008 04:07:30 +0000 (23:07 -0500)]
bump ver to 0.9.4 in spec and module

17 years agomake sure non-unique-md-filenanmes-repos cleanup sqlite files
Seth Vidal [Tue, 29 Jan 2008 02:50:58 +0000 (21:50 -0500)]
make sure non-unique-md-filenanmes-repos cleanup sqlite files
if we switch to unique-md-filenames

17 years agoclean up old versions of primary, filelists and other that are lingering in
Seth Vidal [Tue, 29 Jan 2008 02:48:34 +0000 (21:48 -0500)]
clean up old versions of primary, filelists and other that are lingering in
the repodata dir due to sha1-addition

17 years agoswap around the filename creation order so it doesn't make leaves files around
Seth Vidal [Tue, 29 Jan 2008 02:37:22 +0000 (21:37 -0500)]
swap around the filename creation order so it doesn't make leaves files around

17 years agomake readMetadata.py take its metadata file locations from
Seth Vidal [Tue, 29 Jan 2008 02:28:17 +0000 (21:28 -0500)]
make readMetadata.py take its metadata file locations from
repomd.xml using the yum parser for it.
complete --unique-md-filenames implementation

17 years agopart of --unique-md-filenames is complete. This lets createrepo
Seth Vidal [Mon, 28 Jan 2008 21:57:37 +0000 (16:57 -0500)]
part of --unique-md-filenames is complete. This lets createrepo
generate metadata files with the file's checksum included in the
filename. This helps it work more nicely with proxies. --update support will not
work with --unique-md-filenames at the moment. Need to read in repomd.xml to make that
work.

17 years agochangelog merge
Seth Vidal [Tue, 22 Jan 2008 19:04:58 +0000 (14:04 -0500)]
changelog merge

17 years ago0.9.3
Seth Vidal [Tue, 22 Jan 2008 19:04:33 +0000 (14:04 -0500)]
0.9.3

17 years agoadd changelog-limit option to restrict the number of changelogs we add, by default
Seth Vidal [Tue, 22 Jan 2008 17:44:19 +0000 (12:44 -0500)]
add changelog-limit option to restrict the number of changelogs we add, by default

17 years agomake sure empty directories still work
Seth Vidal [Fri, 18 Jan 2008 03:06:04 +0000 (22:06 -0500)]
make sure empty directories still work

17 years agoupdate changelog
Seth Vidal [Thu, 17 Jan 2008 20:44:07 +0000 (15:44 -0500)]
update changelog

17 years agocomment out a debug print
Seth Vidal [Thu, 17 Jan 2008 20:43:28 +0000 (15:43 -0500)]
comment out a debug print

17 years agore-enable --cachedir in code
Seth Vidal [Thu, 17 Jan 2008 20:41:12 +0000 (15:41 -0500)]
re-enable --cachedir in code
fix logic issues in cachedir from 0.4.X

17 years ago- fix more problems with relative paths and --split
Seth Vidal [Thu, 17 Jan 2008 19:50:54 +0000 (14:50 -0500)]
- fix more problems with relative paths and --split
- revert cachedir disabling
- cachedir isn't working yet, but it's no longer deprecated due to a use case I hadn't considered.

17 years agomake --update and --split mostly work again
Seth Vidal [Thu, 17 Jan 2008 17:52:36 +0000 (12:52 -0500)]
make --update and --split mostly work again

17 years ago- move a bunch of tests into the base class
Seth Vidal [Thu, 17 Jan 2008 17:48:19 +0000 (12:48 -0500)]
- move a bunch of tests into the base class
- deprecate --cachedir - make it enable --update instead b/c it is MUCH
  faster

17 years agobump version to 0.9.2
Seth Vidal [Thu, 17 Jan 2008 17:28:54 +0000 (12:28 -0500)]
bump version to 0.9.2

17 years agoadd some more correct outputs about the sqlite db generation
Seth Vidal [Thu, 17 Jan 2008 17:22:05 +0000 (12:22 -0500)]
add some more correct outputs about the sqlite db generation

17 years ago--split works again, fix relative paths with ../../
Seth Vidal [Thu, 17 Jan 2008 17:15:24 +0000 (12:15 -0500)]
--split works again, fix relative paths with ../../
curse in the direction of --split and --basedir :(

17 years agoclean up api to simplify all of the code calling it
Seth Vidal [Wed, 16 Jan 2008 17:12:44 +0000 (12:12 -0500)]
clean up api to simplify all of the code calling it
probably severely break --split for the moment, though

17 years agomake sure we have empty stubs for items in the rpm-format section, older versions of
Seth Vidal [Tue, 15 Jan 2008 18:29:40 +0000 (13:29 -0500)]
make sure we have empty stubs for items in the rpm-format section, older versions of
yum will go bonkers if not.

17 years ago- add debug output for database time generation
Seth Vidal [Tue, 15 Jan 2008 15:37:45 +0000 (10:37 -0500)]
- add debug output for database time generation

17 years ago- add --skip-stat to skip the stat() call on updates - this is mostly
Seth Vidal [Tue, 15 Jan 2008 15:21:35 +0000 (10:21 -0500)]
- add --skip-stat to skip the stat() call on updates - this is mostly
  b/c the fedora createrepo call is done over nfs and that is VERY VERY
  slow for 20K stat() calls :(
- fix --pkglist - patch from jesse keating
- document options in --help output

17 years ago- add copyright statements and licenses to top of files
Seth Vidal [Mon, 14 Jan 2008 16:45:02 +0000 (11:45 -0500)]
- add copyright statements and licenses to top of files
- start function to remove all the directory mauling in genpkgmetadata
- fixmes

17 years agoreturn src for arch when it's a srpm
Seth Vidal [Fri, 11 Jan 2008 21:08:51 +0000 (16:08 -0500)]
return src for arch when it's a srpm

17 years agomake sure that files are run through the xml escaping, too.
Seth Vidal [Thu, 10 Jan 2008 13:53:52 +0000 (08:53 -0500)]
make sure that files are run through the xml escaping, too.

17 years agoupdate changelog, add changelog target to makefile
Seth Vidal [Wed, 9 Jan 2008 17:22:26 +0000 (12:22 -0500)]
update changelog, add changelog target to makefile

17 years agoclean up old comments and cruft
Seth Vidal [Wed, 9 Jan 2008 17:02:32 +0000 (12:02 -0500)]
clean up old comments and cruft

17 years ago- clean up interface a lot
Seth Vidal [Wed, 9 Jan 2008 16:27:38 +0000 (11:27 -0500)]
- clean up interface a lot
- add callback interface for progress output
- more proper catching of exceptions
- remove improper sys.exit() calls from the base class

17 years agomake --update work correctly - by getting the right item from os.stat() for mtime
Seth Vidal [Wed, 9 Jan 2008 06:59:23 +0000 (01:59 -0500)]
make --update work correctly - by getting the right item from os.stat() for mtime

17 years agofree up memory in the changelog output used by generating the xml node
Seth Vidal [Wed, 9 Jan 2008 06:50:07 +0000 (01:50 -0500)]
free up memory in the changelog output used by generating the xml node

17 years agoclean up a debug output
Seth Vidal [Wed, 9 Jan 2008 04:23:38 +0000 (23:23 -0500)]
clean up a debug output

17 years agofix up a lot of xml creation errors and make --update work again
Seth Vidal [Wed, 9 Jan 2008 03:59:28 +0000 (22:59 -0500)]
fix up a lot of xml creation errors and make --update work again

17 years agobump to 0.9.1
Seth Vidal [Tue, 8 Jan 2008 20:47:24 +0000 (15:47 -0500)]
bump to 0.9.1

17 years agoand a little more utf8'ing - just for completeness and insanity
Seth Vidal [Tue, 8 Jan 2008 20:46:12 +0000 (15:46 -0500)]
and a little more utf8'ing - just for completeness and insanity