index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/get-package-updates | 11 |
diff --git a/bin/get-package-updates b/bin/get-package-updates index 35afbe1..d1ceaaa 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -123,9 +123,10 @@ 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. -cp \ - "${work_dir}/build-list" \ - "${work_dir}/build-list.new" +grep -vxF 'break_loops' \ + "${work_dir}/build-list" > \ + "${work_dir}/build-list.new" || \ + true cp \ "${work_dir}/deletion-list" \ "${work_dir}/deletion-list.new" @@ -326,6 +327,10 @@ if [ -s "${work_dir}/tsort.error" ]; then "${work_dir}/build-list.loops.new/${loop}" done + # add order to break loops to build list + echo 'break_loops' >> + "${work_dir}/build-list.new.new" + else rm "${work_dir}/tsort.error" fi |