Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-12-09 12:05:12 +0100
committerErich Eckner <git@eckner.net>2017-12-09 12:05:12 +0100
commitae193d35edbdb63feeaefc2acd088d27e4003643 (patch)
tree87dd6e5e35a33af6aafaa5c79d7050d7eb42a60d
parent720145c24185880aaf6813004779628b04162d77 (diff)
bin/db-update: cleanup
-rwxr-xr-xbin/db-update12
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/db-update b/bin/db-update
index aeef518..a9cd206 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -495,17 +495,13 @@ find "${work_dir}/package-infos" -name '*.groups' \
} > \
"${tmp_dir}/force-unstage-packages"
-# calculate what packages should be unstaged:
-
-find_biggest_subset_of_packages "${tmp_dir}/done-packages" "${tmp_dir}/build-list-packages" "${tmp_dir}/all-builds" "${tmp_dir}/all-depends" "${tmp_dir}/force-unstage-packages" > \
- "${tmp_dir}/unstage-packages"
-
# no base packages on the build list anymore?
if [ -z "$(
join -j 1 \
"${tmp_dir}/base-packages" \
"${tmp_dir}/build-list-packages"
)" ]; then
+
>&2 echo 'db-update unstage: we pretend, the group "base" does not exist, so we only fetch "direct" dependencies on base-packages'
for s in "${tmp_dir}/all-builds" "${tmp_dir}/all-depends"; do
sed '/ base$/d' "${s}" > \
@@ -514,6 +510,12 @@ if [ -z "$(
find_biggest_subset_of_packages "${tmp_dir}/done-packages" "${tmp_dir}/build-list-packages" "${tmp_dir}/all-builds.no-base" "${tmp_dir}/all-depends.no-base" "${tmp_dir}/force-unstage-packages" > \
"${tmp_dir}/unstage-packages"
+
+else
+
+ find_biggest_subset_of_packages "${tmp_dir}/done-packages" "${tmp_dir}/build-list-packages" "${tmp_dir}/all-builds" "${tmp_dir}/all-depends" "${tmp_dir}/force-unstage-packages" > \
+ "${tmp_dir}/unstage-packages"
+
fi
{