diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-16 17:50:53 +0100 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-16 17:50:53 +0100 |
commit | b0e7b12ed43b6614b6c32f1678edf53f1c668513 (patch) | |
tree | 4ffac78eb87c08dfc03c7f27bb5a6b19b01cb63d | |
parent | 123e7560e49e04f9fdd552f9dc47bcedea2ea128 (diff) | |
download | dbscripts-b0e7b12ed43b6614b6c32f1678edf53f1c668513.tar.gz dbscripts-b0e7b12ed43b6614b6c32f1678edf53f1c668513.tar.xz |
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>
-rwxr-xr-x | db-update | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |