summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-07 13:10:26 +0200
committerErich Eckner <git@eckner.net>2017-07-07 13:10:26 +0200
commit1d609e5ab12c45dab202c3e5e65c0fcb82355624 (patch)
treef796398089641ac0e795f97379f6ce1ae4fea55e /bin/get-package-updates
parent186cc5911b50f6b1db11abe3b08d8fdcf6e82714 (diff)
downloadbuilder-1d609e5ab12c45dab202c3e5e65c0fcb82355624.tar.xz
bin/get-package-updates: use sponge
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 7d82d78..3c9bc1e 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -281,12 +281,8 @@ echo "${black_listed}" | \
delete_package "${package}"
done
-sort -u "${work_dir}/deletion-list.new" > \
- "${work_dir}/deletion-list.new.new"
-
-mv \
- "${work_dir}/deletion-list.new.new" \
- "${work_dir}/deletion-list.new"
+sort -u "${work_dir}/deletion-list.new" | \
+ sponge "${work_dir}/deletion-list.new"
# Now we create the partial order.