From ec1fc664c9e806b1850a637336ad7c56a8931962 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Thu, 2 Feb 2006 23:39:53 +0000 Subject: Imported from pacman-2.9.8.tar.gz --- scripts/pacman-optimize | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/pacman-optimize') 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 +# Copyright (c) 2002-2006 by Judd Vinet # # 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..." -- cgit v1.2.3-24-g4f1b