diff options
author | Remi Collet <remi@remirepo.net> | 2018-10-03 15:35:32 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-10-03 15:35:32 +0200 |
commit | 71cbce4e2d8b9c98138ca5fdd6dea435f3cffa96 (patch) | |
tree | 00a24d1bedb3a838919b68dc7b343cd1704ee8fa /mkrepo | |
parent | 17bc6968939156eb15073269ea518b5c0d037bb7 (diff) |
another try on createrepo --retain-old-md
Diffstat (limited to 'mkrepo')
-rwxr-xr-x | mkrepo | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -48,7 +48,7 @@ fi cache=/home/rpmbuild/site/rpms/.createrepocache/$nom mkdir -p $cache check=sha256 -if [ "$dis" == "fedora" -a "$ver" -ge 27 ]; then +if [ "$dis" == "fedora" -a "$ver" -ge 99 ]; then # See: https://bugzilla.redhat.com/show_bug.cgi?id=1577747 echo "+ Nettoyage" rm -rf repodata @@ -56,7 +56,7 @@ if [ "$dis" == "fedora" -a "$ver" -ge 27 ]; then createrepo_c --workers 4 \ --cachedir $cache \ --unique-md-filenames \ - --retain-old-md 1 \ + --retain-old-md 5 \ --changelog-limit 3 \ --compress-type=bz2 \ --database $(pwd) @@ -66,17 +66,12 @@ else --cachedir $cache \ --checksum $check \ --unique-md-filenames \ + --retain-old-md 5 \ --changelog-limit 3 \ --compress-type=bz2 \ --database . fi -if [ -d headers ] -then - echo "+ Génération des headers" - yum-arch . -fi - echo "+ Génération repoview" nom=${PWD#/home/rpmbuild/site/rpms/} echo repoview --url http://rpms.remirepo.net/$nom \ |