Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/pacman-optimize.sh.in
diff options
context:
space:
mode:
authorWolfgang Bumiller <wry.git@bumiller.com>2014-08-10 19:39:12 +1000
committerAllan McRae <allan@archlinux.org>2014-09-23 21:43:16 +1000
commiteab8cf6241119b2c1c44d5ec68ea53c7e4224a3b (patch)
tree5e474b20c3efbbd849e0659e13926432888bdb8e /scripts/pacman-optimize.sh.in
parentf0c351b3fa9ca56ae180b2b10fc2f0f41cde0ac7 (diff)
replace --reference on chmod/chown commands
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/pacman-optimize.sh.in')
-rw-r--r--scripts/pacman-optimize.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/pacman-optimize.sh.in b/scripts/pacman-optimize.sh.in
index 93742695..7c809193 100644
--- a/scripts/pacman-optimize.sh.in
+++ b/scripts/pacman-optimize.sh.in
@@ -168,8 +168,8 @@ msg "$(gettext "Rotating database into place...")"
fail=0
mv "$localdb" "$localdb.old" || fail=1
mv "$localdb.new" "$localdb" || fail=1
-chmod --reference="$localdb.old" "$localdb" || fail=1
-chown --reference="$localdb.old" "$localdb" || fail=1
+chmod $(@MODECMD@ "$localdb.old") "$localdb" || fail=1
+chown $(@OWNERCMD@ "$localdb.old") "$localdb" || fail=1
if (( fail )); then
# failure with our directory shuffle
die_r "$(gettext "New database substitution failed. Check for %s, %s, and %s directories.")" "$localdb" "$localdb.old" "$localdb.new"