index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | scripts/repo-remove.sh.in | 10 |
diff --git a/scripts/repo-remove.sh.in b/scripts/repo-remove.sh.in index 63209728..7943b2b8 100644 --- a/scripts/repo-remove.sh.in +++ b/scripts/repo-remove.sh.in @@ -52,7 +52,7 @@ There is NO WARRANTY, to the extent permitted by law.\n")" # test if a file is a repository DB test_repo_db_file () { if [ -f "$REPO_DB_FILE" ]; then - [ "$(tar tf "$REPO_DB_FILE" | grep -c "/desc")" -gt 0 ] || return 1 + [ "$(bsdtar -tf "$REPO_DB_FILE" | grep -c "/desc")" -gt 0 ] || return 1 else true fi @@ -120,7 +120,7 @@ if [ $# -gt 1 ]; then exit 1 elif [ -f "$REPO_DB_FILE" ]; then echo "$(gettext ":: extracting database to a temporary location")" - tar xf "$REPO_DB_FILE" -C "$gstmpdir" + bsdtar -xf "$REPO_DB_FILE" -C "$gstmpdir" fi else echo "$(gettext ":: searching for package '%s'")" @@ -143,10 +143,10 @@ if [ $# -gt 1 ]; then [ -f "${REPO_DB_FILE}.old" ] && rm "${REPO_DB_FILE}.old" [ -f "$REPO_DB_FILE" ] && mv "$REPO_DB_FILE" "${REPO_DB_FILE}.old" case "$DB_COMPRESSION" in - gz) tar c * | gzip -9 >$REPO_DB_FILE ;; - bz2) tar c * | bzip2 -9 >$REPO_DB_FILE ;; + gz) bsdtar -c * | gzip -9 >$REPO_DB_FILE ;; + bz2) bsdtar -c * | bzip2 -9 >$REPO_DB_FILE ;; *) echo "$(gettext "warning: no compression set")" - tar c * >$REPO_DB_FILE;; + bsdtar -c * >$REPO_DB_FILE;; esac fi else |