index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Florian Pritz <bluewind@xinu.at> | 2012-04-06 18:17:06 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-04-07 11:30:56 -0500 |
commit | 62e8812fb9002bf2d737375003652bc6becc9f54 (patch) | |
tree | 8438375886c3a7692ca76258c67e018f90984578 /scripts | |
parent | 3be02aa27c892b2bcc76a8883a0087b51c0e768b (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 5 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 043a0b86..5159ea2f 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -176,6 +176,11 @@ db_remove_delta() { if grep -q "$filename" $deltas; then sed -i.backup "/$filename/d" $deltas && rm -f $deltas.backup msg2 "$(gettext "Removing existing entry '%s'...")" "$filename" + # empty deltas file contains only "%DELTAS%" + if (( $(wc -l < "$deltas") == 1 )); then + msg2 "$(gettext "Removing empty deltas file ...")" + rm "$deltas" + fi return 0 fi |