diff options
author | Dan McGee <dan@archlinux.org> | 2007-07-15 10:29:26 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-07-15 10:29:26 -0400 |
commit | 66b09410b4da950d4be95128333128fdb2658b3c (patch) | |
tree | ba4913210e3b2401e96f62a7738e58e8c1fc3363 /scripts/pacman-optimize.sh.in | |
parent | f0ea21cffca62c566c5e4d2c540c70fb891b9f4c (diff) | |
download | pacman-66b09410b4da950d4be95128333128fdb2658b3c.tar.xz |
Switch repo-add, repo-remove, and pacman-optimize to bsdtar
Relatively straightforward fixes (s/tar/bsdtar/g, add hyphens to options).
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/pacman-optimize.sh.in')
-rw-r--r-- | scripts/pacman-optimize.sh.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/pacman-optimize.sh.in b/scripts/pacman-optimize.sh.in index fe59e661..4c47d882 100644 --- a/scripts/pacman-optimize.sh.in +++ b/scripts/pacman-optimize.sh.in @@ -109,7 +109,7 @@ find $dbroot -type f | sort | xargs md5sum > /tmp/pacsums.old # step 2: tar it up msg "$(gettext "Tar'ing up %s...")" "$dbroot" cd $dbroot -tar -czf /tmp/pacmanDB.tgz ./ +bsdtar -czf /tmp/pacmanDB.tgz ./ if [ $? -ne 0 ]; then rm -f /tmp/pacmanDB.tgz /tmp/pacsums.old die_r "$(gettext "Tar'ing up %s failed.")" "$dbroot" @@ -118,7 +118,7 @@ fi # step 3: make and sum the new db msg "$(gettext "Making and MD5sum'ing the new db...")" mkdir $dbroot.new -tar -zxpf /tmp/pacmanDB.tgz -C $dbroot.new/ +bsdtar -zxpf /tmp/pacmanDB.tgz -C $dbroot.new/ if [ $? -ne 0 ]; then rm -f /tmp/pacmanDB.tgz /tmp/pacsums.old rm -rf "$dbroot.new" @@ -141,7 +141,7 @@ fi # and use the .tgz to replace the old one msg "$(gettext "Putting the new database in place...")" rm -rf "$dbroot.new" "$dbroot"/* -tar -zxpf /tmp/pacmanDB.tgz -C "$dbroot"/ +bsdtar -zxpf /tmp/pacmanDB.tgz -C "$dbroot"/ # remove the lock file, sum files, and .tgz of database rm -f $lockfile /tmp/pacsums.old /tmp/pacsums.new /tmp/pacmanDB.tgz |