summaryrefslogtreecommitdiffstats
path: root/scripts/pacman-optimize
diff options
context:
space:
mode:
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..."