Skip to content

Commit

Permalink
Prep 0.3.2 - enhancement + small feature release.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanuber committed Aug 18, 2013
1 parent 5d6142c commit 4e4d13b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ centos/
└── Packages
```

You can also opt to have a combined repository for each of your repos. This is
useful because you could simply point your clients to the root of your
repository, and they will have access to its complete history of RPMs. You can
do this by passing in the `--combined` option when versioning repositories.

Pakrat is also capable of handling multiple YUM repositories in the same mirror
run. If multiple repositories are specified, each repository will get its own
download thread. This is handy if you are syncing from a mirror that is not
Expand Down Expand Up @@ -266,10 +271,7 @@ rpmbuild -tb pakrat.tar.gz
What's missing
--------------

* Unit tests (preliminary work done in unit_test branch, but I suck at mocking
modules. Pretty please finish it for me? :P )
* Optional "all" repository containing all known versions
* Combined repositories?
* Unit tests (preliminary work done in unit_test branch)

Thanks
------
Expand Down
4 changes: 4 additions & 0 deletions bin/pakrat
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ if len(repos) < 1 and len(options.repofile) < 1 and len(options.repodir) < 1:
parser.print_help()
sys.exit(1)

if options.combined and not options.repoversion:
print '--combined is only usable with --repoversion.'
sys.exit(1)

try:
numrepos, numfails, elapsed = pakrat.sync(
basedir=options.outdir,
Expand Down
2 changes: 1 addition & 1 deletion packaging/pakrat.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

name: pakrat
summary: A Python library for mirroring and versioning YUM repositories
version: 0.3.1
version: 0.3.2
release: 1%{?dist}
buildarch: noarch
license: MIT
Expand Down
2 changes: 1 addition & 1 deletion pakrat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import urlparse
from pakrat import util, log, repo, repos, progress

__version__ = '0.3.1'
__version__ = '0.3.2'

def sync(basedir=None, objrepos=[], repodirs=[], repofiles=[],
repoversion=None, delete=False, combined=False, callback=None):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def required_module(module):
required_module('createrepo')

setup(name='pakrat',
version='0.3.1',
description='A Python library for mirroring and versioning YUM repositories',
version='0.3.2',
description='A tool for mirroring and versioning YUM repositories',
author='Ryan Uber',
author_email='[email protected]',
url='https://github.com/ryanuber/pakrat',
Expand Down

0 comments on commit 4e4d13b

Please sign in to comment.