From 71cbce4e2d8b9c98138ca5fdd6dea435f3cffa96 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 3 Oct 2018 15:35:32 +0200 Subject: another try on createrepo --retain-old-md --- mkrepo | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'mkrepo') diff --git a/mkrepo b/mkrepo index 2d8dd9e..79528cc 100755 --- a/mkrepo +++ b/mkrepo @@ -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 \ -- cgit