index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-05-23 13:13:48 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-05-23 13:13:48 +0200 |
commit | 0515859f664070dd1a61a9b7f22ca058999a15a5 (patch) | |
tree | c1575a1766aa3c71794e82f939e8ae7fd30ce9e5 /bin | |
parent | f854bddd8e61faa6983e6e00c534579c9b8ee45d (diff) |
-rwxr-xr-x | bin/get-package-updates | 29 |
diff --git a/bin/get-package-updates b/bin/get-package-updates index 6c8192b..0f8dae0 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -462,17 +462,26 @@ while read -r pkgbase repository git_revision mod_git_revision; do done \ < "${tmp_dir}/modified-packages" -# extract black-listed packages -git -C "${repo_paths__archlinux32}" archive "${new_repo_revisions__archlinux32}" -- 'blacklist' \ -| tar -t 'blacklist' \ -| sed ' - s@^blacklist/\([^/]\+\)/[^/]\+/\([^/]\+\)$@\1\t\2@ - t - d -' \ +echo 'remove blacklisted packages' + +{ + git -C "${repo_paths__archlinux32}" archive "${new_repo_revisions__archlinux32}" -- 'blacklist' \ + | tar -t 'blacklist' \ + | sed ' + s@^blacklist/\([^/]\+\)/[^/]\+/\([^/]\+\)$@\1 \2@ + t + d + ' \ + | sort -k2,2 \ + | join -1 1 -2 2 -o 2.1,2.2 "${tmp_dir}/modified-packages" - + git -C "${repo_paths__archlinux32}" diff --name-status "${old_repo_revisions__archlinux32}" "${new_repo_revisions__archlinux32}" -- 'blacklist' \ + | sed ' + s@^[AM]\sblacklist/\([^/]\+\)/[^/]\+/\([^/]\+\)$@\1 \2@ + t + d + ' +} \ | expand_blacklist_architectures "${tmp_dir}/architecture-compatibilities" \ -| sort -k2,2 \ -| join -1 1 -2 2 -o 2.1,2.2 "${tmp_dir}/modified-packages" - \ | sort -u \ | while read -r arch pkgbase; do delete_package "${arch}" "${pkgbase}" '%s' |