Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/seed-build-list
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-23 08:50:44 +0100
committerErich Eckner <git@eckner.net>2017-11-23 08:50:44 +0100
commit52b93f6ad26f6b5a83c5e09b36e1b18b96ea9857 (patch)
tree5a589d2cb6d6757410f5a272147da2902e8faa53 /bin/seed-build-list
parent3f8e603f63db4613081f6f36081ef9492601fa46 (diff)
bin/interpret-mail: action "schedule" new; bin/seed-build-list: bail out early if no arguments, print scheduled packages (even if -n not given)
Diffstat (limited to 'bin/seed-build-list')
-rwxr-xr-xbin/seed-build-list10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/seed-build-list b/bin/seed-build-list
index 5392306..cfe4bab 100755
--- a/bin/seed-build-list
+++ b/bin/seed-build-list
@@ -89,6 +89,12 @@ if [ $# -ne 0 ]; then
usage 1
fi
+if [ ! -s "${tmp_dir}/mirrors" ] && \
+ [ ! -s "${tmp_dir}/package-regexes" ]; then
+ # nothing to do
+ exit 0
+fi
+
repos="${stable_package_repositories}"
find "${work_dir}/package-infos" -maxdepth 1 -name '*.packages' -printf '%f\n' | \
@@ -273,8 +279,8 @@ fi
if ${update}; then
awk '{print $4 " " $1 " " $2 " " $3}' \
- "${tmp_dir}/build-list.new" >> \
- "${work_dir}/build-list"
+ "${tmp_dir}/build-list.new" | \
+ tee -a "${work_dir}/build-list"
# Remove the lock file