summaryrefslogtreecommitdiffstats
path: root/mkrepo
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-10-03 15:35:32 +0200
committerRemi Collet <remi@remirepo.net>2018-10-03 15:35:32 +0200
commit71cbce4e2d8b9c98138ca5fdd6dea435f3cffa96 (patch)
tree00a24d1bedb3a838919b68dc7b343cd1704ee8fa /mkrepo
parent17bc6968939156eb15073269ea518b5c0d037bb7 (diff)
another try on createrepo --retain-old-md
Diffstat (limited to 'mkrepo')
-rwxr-xr-xmkrepo11
1 files changed, 3 insertions, 8 deletions
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 \