Skip to content

Commit

Permalink
[prunerepo] doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
clime committed Feb 26, 2016
1 parent 0a98761 commit 7ba090a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
12 changes: 6 additions & 6 deletions prunerepo/man/prunerepo.1.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ prunerepo [--days DAYS] [--cleancopr] [--nocreaterepo] [--verbose] [-h] [-v] pat
DESCRIPTION
-----------
RPM packages that have newer version available in that same
repository are deleted from filesystem and the rpm-md metadata are
repository are deleted from filesystem and the rpm-md metadata are
recreated afterwards. If there is a source rpm for a deleted rpm
(and they both share the same directory path), then the source rpm
is deleted as well.
(and they both share the same directory path), then the source rpm
will be deleted as well.

Support for specific repository structure (e.g. COPR) is also available
making it possible to additionally remove build logs and whole build
making it possible to additionally remove build logs and whole build
directories associated with a package.

After deletion of obsoleted packages, the command
"createrepo_c --database --update" is called
"createrepo_c --database --update" is called
to recreate the repository metadata.


Expand All @@ -37,7 +37,7 @@ path::
OPTIONS
-------
--days DAYS::
only remove packages older than DAYS (by their build date), does remove srpm only if associated rpm is removed
only remove packages that are DAYS old or older (by their build date)

--cleancopr::
additionaly remove whole copr build dirs (contain 'build.info' file) and logs if the associated package gets deleted
Expand Down
2 changes: 1 addition & 1 deletion prunerepo/prunerepo
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ parser = argparse.ArgumentParser(description='Remove old packages from rpm-md re
parser.add_argument('path', action='store',
help='local path to a yum repository')
parser.add_argument('--days', type=int, action='store', default=0,
help='only remove packages older than DAYS by their build date')
help='only remove packages that are DAYS old or older (by their build date)')
parser.add_argument('--cleancopr', action='store_true',
help='additionaly remove whole copr build dirs and logs if the associated package gets deleted')
parser.add_argument('--nocreaterepo', action='store_true',
Expand Down
22 changes: 13 additions & 9 deletions prunerepo/prunerepo.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@ Requires: rpm-python3
Requires: python3

%description
Removes obsoleted package versions from a yum repository. Both
rpms and srpms, that have a newer version available in that same
repository, are deleted from filesystem and rpm-md metadata are
recreated afterwards. Support for specific repository structure
(e.g. COPR) is also available making it possible to additionally
remove build logs and whole build directories associated with a
package. After deletion of obsoleted packages, the command
"createrepo_c --database --update" is called to recreate the
repository metadata.
RPM packages that have newer version available in that same
repository are deleted from filesystem and the rpm-md metadata are
recreated afterwards. If there is a source rpm for a deleted rpm
(and they both share the same directory path), then the source rpm
will be deleted as well.

Support for specific repository structure (e.g. COPR) is also available
making it possible to additionally remove build logs and whole build
directories associated with a package.

After deletion of obsoleted packages, the command
"createrepo_c --database --update" is called
to recreate the repository metadata.

%prep
%setup -q
Expand Down

0 comments on commit 7ba090a

Please sign in to comment.