summaryrefslogtreecommitdiffstats
path: root/scripts/pacman-optimize
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2006-02-03 00:39:53 +0100
committerJudd Vinet <judd@archlinux.org>2006-02-03 00:39:53 +0100
commitec1fc664c9e806b1850a637336ad7c56a8931962 (patch)
tree36edf5ffc492d188b2149d465faa7f39b9d32ec0 /scripts/pacman-optimize
parent1bcc87c3feb41dc8004c3d600e3a3501a4060b44 (diff)
downloadpacman-ec1fc664c9e806b1850a637336ad7c56a8931962.tar.gz
pacman-ec1fc664c9e806b1850a637336ad7c56a8931962.tar.xz
Imported from pacman-2.9.8.tar.gz
Diffstat (limited to 'scripts/pacman-optimize')
-rwxr-xr-xscripts/pacman-optimize8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/pacman-optimize b/scripts/pacman-optimize
index cb321f2c..74f3e64b 100755
--- a/scripts/pacman-optimize
+++ b/scripts/pacman-optimize
@@ -2,7 +2,7 @@
#
# pacman-optimize
#
-# Copyright (c) 2002-2005 by Judd Vinet <jvinet@zeroflux.org>
+# Copyright (c) 2002-2006 by Judd Vinet <jvinet@zeroflux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
# USA.
#
-myver='2.9.7'
+myver='2.9.8'
usage() {
echo "pacman-optimize $myver"
@@ -77,7 +77,7 @@ touch /tmp/pacman.lck
# step 1: sum the old db
echo "==> md5sum'ing the old database..."
-tar --same-order -c $dbroot 2>/dev/null | md5sum >/tmp/pacsums.old
+find $dbroot -type f | sort | xargs md5sum >/tmp/pacsums.old
# step 1: copy the entire db directory to a new one
echo "==> copying $dbroot..."
@@ -87,7 +87,7 @@ cp -a $dbroot $dbroot.new || die_r "error copying $dbroot"
echo "==> md5sum'ing the new database..."
mv $dbroot $dbroot.bak || die_r "error renaming $dbroot"
mv $dbroot.new $dbroot || die_r "error renaming $dbroot.new"
-tar --same-order -c $dbroot 2>/dev/null | md5sum >/tmp/pacsums.new
+find $dbroot -type f | sort | xargs md5sum >/tmp/pacsums.new
# step 3: compare sums
echo "==> checking integrity..."