index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2011-07-05 01:28:27 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-05 21:40:26 -0500 |
commit | eda741ae93519bea80af45e01ba7417cc50a4e1b (patch) | |
tree | f21119f164787d16710af4962f2572d2a7dcc1bf /scripts | |
parent | 043931ca452f6b231eb5b9b0863329843677bd2a (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 6 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 415ad41f..474e21d9 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -642,7 +642,11 @@ if (( success )); then create_signature "$tmpdir/$filename" [[ -f $REPO_DB_FILE ]] && mv -f "$REPO_DB_FILE" "${REPO_DB_FILE}.old" - [[ -f $REPO_DB_FILE.sig ]] && rm -f "$REPO_DB_FILE.sig" + if [[ -f $REPO_DB_FILE.sig ]]; then + mv -f "$REPO_DB_FILE.sig" "$REPO_DB_FILE.old.sig" + else + rm -f "$REPO_DB_FILE.old.sig" + fi [[ -f $tmpdir/$filename ]] && mv "$tmpdir/$filename" "$REPO_DB_FILE" [[ -f $tmpdir/$filename.sig ]] && mv "$tmpdir/$filename.sig" "$REPO_DB_FILE.sig" dblink="${REPO_DB_FILE%.tar*}" |