index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Ray Kohler <ataraxia937@gmail.com> | 2011-03-25 19:25:38 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-27 20:35:43 -0500 |
commit | 630b7b94c39ddc60d4e2b3c80d5d9f3101049b93 (patch) | |
tree | 3a6735980607bec00c3ee7c6bd838970b8b1a709 /scripts | |
parent | 43dacceb6bba837aceba331c31ed8d8ee7a9e1d5 (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 3 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 4447732d..1c0347cc 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -574,12 +574,13 @@ if (( success )); then pushd "$tmpdir" >/dev/null if [[ -n $(ls) ]]; then bsdtar -c${TAR_OPT}f "$filename" * - create_signature "$filename" else # we have no packages remaining? zip up some emptyness warning "$(gettext "No packages remain, creating empty database.")" bsdtar -c${TAR_OPT}f "$filename" -T /dev/null fi + create_signature "$filename" + popd >/dev/null [[ -f $REPO_DB_FILE ]] && mv -f "$REPO_DB_FILE" "${REPO_DB_FILE}.old" |