diff options
Diffstat (limited to 'mkrepo')
-rwxr-xr-x | mkrepo | 27 |
1 files changed, 11 insertions, 16 deletions
@@ -12,7 +12,7 @@ then elif [ "$nom" = "SRPMS" ] then dis=fedora - ver=36 + ver=40 old=8 dst=/data/rpms/SRPMS.remi else @@ -26,7 +26,13 @@ fi GPG_PATH=/home/remi/.gnupgrpm if [ "$dis" == "fedora" ]; then # Fedora - if [ "$ver" -ge 36 ] + if [ "$ver" -ge 40 ] + then echo "key 2024" + GPG_NAME="CF1DF0057CE85DFF5B2F2A37C2FD3B2C2A0948E4" + elif [ "$ver" -ge 38 ] + then echo "key 2023" + GPG_NAME="50A5E157DFE548EC7C05E9D8D5933DAB6DEFD35E" + elif [ "$ver" -ge 36 ] then echo "key 2022" GPG_NAME="845160D23149DAD504F0A32D83C0639E1FEF0014" elif [ "$ver" -ge 34 ] @@ -84,29 +90,18 @@ cache=/home/rpmbuild/site/rpms/.createrepocache/$nom mkdir -p $cache check=sha256 #if [ "$dis" == "fedora" -a "$ver" -ge 99 ]; then -if true; then cleanoldmeta repodata echo "+ Génération repodata (createrepo_c, $check)" - createrepo_c --workers 4 \ + createrepo_c --workers 12 \ --cachedir $cache \ --unique-md-filenames \ --retain-old-md 8 \ --changelog-limit 3 \ --compress-type=bz2 \ + --general-compress-type=bz2 \ --quiet \ --database $(pwd) -else - cleanoldmeta repodata - echo "+ Génération repodata (createrepo, $check)" - createrepo --workers 4 \ - --cachedir $cache \ - --checksum $check \ - --unique-md-filenames \ - --retain-old-md 8 \ - --changelog-limit 3 \ - --compress-type=bz2 \ - --database . -fi +#fi rm -f repodata/repomd.xml.asc gpg --armor --detach-sign --default-key "$GPG_NAME" --homedir "$GPG_PATH" repodata/repomd.xml |