index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-05-23 09:45:45 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-05-23 09:45:45 +0200 |
commit | ac47ff9181f82602376dc809f7ec144807c995cd (patch) | |
tree | 9dc2a722d47dd2909a339d9bf5fa680c8c35f61f /bin/get-package-updates | |
parent | 3a95188a887b2402047b1f37268433bdec9456dd (diff) |
-rwxr-xr-x | bin/get-package-updates | 7 |
diff --git a/bin/get-package-updates b/bin/get-package-updates index 03ccdd2..7d1aff2 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -299,6 +299,7 @@ echo 'Check modified packages from the last update, and put them to the build li { directories=$( + # shellcheck disable=SC2154 git -C "${repo_paths__state}" archive "${new_repo_revisions__state}" \ | tar -t \ | cut -d/ -f1 \ @@ -323,6 +324,7 @@ echo 'Check modified packages from the last update, and put them to the build li | sort -u \ > "${tmp_dir}/mysql-packages" for directory in ${directories}; do + # shellcheck disable=SC2154 git -C "${repo_paths__state}" archive "${new_repo_revisions__state}" -- "${directory}" \ | tar -Ox \ | cut -d' ' -f1,4 \ @@ -330,6 +332,7 @@ echo 'Check modified packages from the last update, and put them to the build li s@$@ '"${directory%-*}"'@ ' done \ + | grep -v '^lib32-' \ | sort -u \ > "${tmp_dir}/upstream-packages" diff "${tmp_dir}/mysql-packages" "${tmp_dir}/upstream-packages" \ @@ -338,6 +341,7 @@ echo 'Check modified packages from the last update, and put them to the build li | sort -k2,2 -k3,3 \ | uniq -uf1 \ | while read -r git_revision pkgbase repository; do + # shellcheck disable=SC2154 if git -C "${repo_paths__archlinux32}" archive "${new_repo_revisions__archlinux32}" -- "${repository}/${pkgbase}" >/dev/null 2>&1; then mod_git_revision="${new_repo_revisions__archlinux32}" else @@ -419,9 +423,6 @@ diff "${tmp_dir}/mysql-packages" "${tmp_dir}/upstream-packages" \ delete_package 'any' "${pkgbase}" "${repository}" done -grep -v '^lib32-' "${tmp_dir}/modified-packages" \ -| sponge "${tmp_dir}/modified-packages" - while read -r pkgbase repository git_revision mod_git_revision; do # shellcheck disable=SC2016 { |