diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-16 08:50:53 -0800 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-16 08:50:53 -0800 |
commit | b0e7b12ed43b6614b6c32f1678edf53f1c668513 (patch) | |
tree | 4ffac78eb87c08dfc03c7f27bb5a6b19b01cb63d /db-update | |
parent | 123e7560e49e04f9fdd552f9dc47bcedea2ea128 (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-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 |