summaryrefslogtreecommitdiffstats
path: root/mkrepo
diff options
context:
space:
mode:
Diffstat (limited to 'mkrepo')
-rwxr-xr-xmkrepo5
1 files changed, 4 insertions, 1 deletions
diff --git a/mkrepo b/mkrepo
index 2e2f854..2d8dd9e 100755
--- a/mkrepo
+++ b/mkrepo
@@ -49,6 +49,9 @@ cache=/home/rpmbuild/site/rpms/.createrepocache/$nom
mkdir -p $cache
check=sha256
if [ "$dis" == "fedora" -a "$ver" -ge 27 ]; then
+ # See: https://bugzilla.redhat.com/show_bug.cgi?id=1577747
+ echo "+ Nettoyage"
+ rm -rf repodata
echo "+ Génération repodata (createrepo_c, $check)"
createrepo_c --workers 4 \
--cachedir $cache \
@@ -56,7 +59,7 @@ if [ "$dis" == "fedora" -a "$ver" -ge 27 ]; then
--retain-old-md 1 \
--changelog-limit 3 \
--compress-type=bz2 \
- --database .
+ --database $(pwd)
else
echo "+ Génération repodata (createrepo, $check)"
createrepo --workers 4 \