diff options
author | Erich Eckner <git@eckner.net> | 2019-05-15 13:22:39 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-05-15 13:22:39 +0200 |
commit | adbb9bb90fe4841dbb0c14c11c283e9f5bef05e2 (patch) | |
tree | e78691237de297b18226e07b840530c150789f20 /bin/get-package-updates | |
parent | 96a72d118f8715f6f333cf129a6b79f5a07da582 (diff) | |
download | builder-adbb9bb90fe4841dbb0c14c11c283e9f5bef05e2.tar.xz |
bin/get-package-updates: make rescheduling logic apply to our sources, too
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-x | bin/get-package-updates | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates index ceab21a..a254c7b 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -299,13 +299,12 @@ echo 'Check modified packages from the last update, and put them to the build li # If a package is deleted, remove from the rebuild list, and add it to the deletion list. # If a new package is added, then ensure that it's not on the deletion list. -# note: This only works for upstream sources! # shellcheck disable=SC2016 { - printf 'SELECT DISTINCT CONCAT(' - printf '`package_sources`.`pkgbase`,"/repos/",' - printf '`upstream_repositories`.`name`,"-",' - printf 'IF(`build_assignments`.`architecture`=%s,"any","x86_64"))' \ + printf 'SELECT DISTINCT' + printf ' `package_sources`.`pkgbase`,' + printf '`upstream_repositories`.`name`,' + printf 'IF(`build_assignments`.`architecture`=%s,"any","x86_64")' \ "${architecture_ids__any}" printf ' FROM `binary_packages`' mysql_join_binary_packages_binary_packages_in_repositories @@ -317,7 +316,7 @@ echo 'Check modified packages from the last update, and put them to the build li } | \ mysql_run_query | \ sed ' - s@.*@s,^\\(.\\t\0/\\)[^/]\\+,\\1PKGBUILD,@ + s@^\(\S*\)\t\(\S*\)\t\(\S*\)$@s,^\\(.\\t\1/repos/\2-\3/\\)[^/]\\+$,\\1PKGBUILD,\ns,^\\(.\\t\2/\1/\\)[^/]\\+$,\\1PKGBUILD,@ ' > \ "${tmp_dir}/trigger-rebuild-on-any-file-sed-expression" |