summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-12-16 08:50:53 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2008-12-16 08:50:53 -0800
commitb0e7b12ed43b6614b6c32f1678edf53f1c668513 (patch)
tree4ffac78eb87c08dfc03c7f27bb5a6b19b01cb63d /db-update
parent123e7560e49e04f9fdd552f9dc47bcedea2ea128 (diff)
Only remove packages that were successfully added
This prevents some errors where packages where removed from the staging dir when they shouldn't have been. Original-idea-by: Pierre Schmitz <pierre@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-update b/db-update
index 40c5539..2a9dd6e 100755
--- a/db-update
+++ b/db-update
@@ -164,9 +164,9 @@ else
echo "Nothing to copy, no work done"
fi
-if [ -n "$ADDPKGS" ]; then
+if [ -n "$to_add" ]; then
echo "Cleaning staging dir"
- /bin/rm $ADDPKGS
+ /bin/rm $to_add
fi
cleanup