If you are keeping a copy of the old database, you probably want
to keep a copy of its signature too.

Signed-off-by: Allan McRae <[email protected]>
---
 scripts/repo-add.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 415ad41..cad02a9 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -642,7 +642,7 @@ 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"
+       [[ -f $REPO_DB_FILE.sig ]] && mv -f "$REPO_DB_FILE.sig" 
"$REPO_DB_FILE.old.sig"
        [[ -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*}"
-- 
1.7.6


Reply via email to