diff options
author | Remi Collet <remi@remirepo.net> | 2023-11-16 21:26:06 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-11-16 21:26:06 +0100 |
commit | 83ed115aa274a7c78ecc73aab0c5a0fa4fb061fc (patch) | |
tree | 003600107badad1636fb17c55407f52f43136143 | |
parent | 657537ca5c20a5834e458cf38d2ff8bb6ab8a73d (diff) |
only bz2 for repodata
-rwxr-xr-x | mkmodular | 4 | ||||
-rwxr-xr-x | mkrepo | 15 |
2 files changed, 4 insertions, 15 deletions
@@ -370,7 +370,7 @@ exec("mkrepo nocheck noclean"); $data = '/tmp/modules.yaml'; file_put_contents($data, $mod); $hash = hash('sha256', $mod); -exec("modifyrepo_c --mdtype=modules $data repodata >/dev/null"); +exec("modifyrepo_c --compress-type=bz2 --mdtype=modules $data repodata >/dev/null"); $arch = basename($dest); rename($data, "$data.$arch"); @@ -984,7 +984,7 @@ if (count($_SERVER['argv']) < 2 || in_array('el8', $_SERVER['argv']) || in_array $mod .= genModule('enterprise/8/php81/aarch64', $dest, '*.rpm', '8.1', 'aarch64', $deps, $template_php); $mod .= genModule('enterprise/8/php82/aarch64', $dest, '*.rpm', '8.2', 'aarch64', $deps, $template_php); $mod .= genModule('enterprise/8/php83/aarch64', $dest, '*.rpm', '8.3', 'aarch64', $deps, $template_php); - $mod .= genDefaults('php', '7.2', ['remi-7.4', 'remi-8.0', 'remi-8.1', 'remi-8.2', 'remi-8.3']); + $mod .= genDefaults('php', '7.2', ['remi-7.2', 'remi-7.3', 'remi-7.4', 'remi-8.0', 'remi-8.1', 'remi-8.2', 'remi-8.3']); $deps = ['platform' => 'el8']; $mod .= genModule('enterprise/8/redis60/aarch64', $dest, 'redis*.rpm', '6.0', 'aarch64', $deps, $template_redis); @@ -87,7 +87,6 @@ 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 12 \ @@ -96,20 +95,10 @@ if true; then --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 12 \ - --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 |