summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-09-24 02:11:34 +0200
committerDan McGee <dan@archlinux.org>2009-09-24 02:11:34 +0200
commit20aa17c276c35e08c7a8e2aa20410b99a20f8129 (patch)
tree1a0bb3fc5148d7ef367d89bab95758f725dfda2f
parent7cead800c52e635d7f5010875cd8fcf99b93f4b2 (diff)
downloadpacman-20aa17c276c35e08c7a8e2aa20410b99a20f8129.tar.gz
pacman-20aa17c276c35e08c7a8e2aa20410b99a20f8129.tar.xz
repo-add: make sure we get size of target file
If the package we were adding was a symlink, we stuck the symlink size in the database rather than the size of the file it referred to. Whoops! Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 1e9ab35b..9f3445dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -184,11 +184,11 @@ GCC_VISIBILITY_CC
GCC_GNU89_INLINE_CC
# Host-dependant definitions
-SIZECMD="stat -c %s"
+SIZECMD="stat -L -c %s"
SEDINPLACE="sed -i"
case "${host_os}" in
*bsd*)
- SIZECMD="stat -f %z"
+ SIZECMD="stat -L -f %z"
SEDINPLACE="sed -i ''"
;;
cygwin*)
@@ -197,7 +197,7 @@ case "${host_os}" in
;;
darwin*)
host_os_darwin=yes
- SIZECMD="/usr/bin/stat -f %z"
+ SIZECMD="/usr/bin/stat -L -f %z"
SEDINPLACE="/usr/bin/sed -i ''"
;;
esac