diff options
author | Michael Imhof <tantive@gentoo.org> | 2003-11-18 01:36:58 +0000 |
---|---|---|
committer | Michael Imhof <tantive@gentoo.org> | 2003-11-18 01:36:58 +0000 |
commit | 6647c3df02736b15bd51120eee257346c97edd47 (patch) | |
tree | bfcab71479c84bb10a3df2dbaae0c7eba4d2c011 /app-admin | |
parent | Added metadata (diff) | |
download | gentoo-2-6647c3df02736b15bd51120eee257346c97edd47.tar.gz gentoo-2-6647c3df02736b15bd51120eee257346c97edd47.tar.bz2 gentoo-2-6647c3df02736b15bd51120eee257346c97edd47.zip |
some fixes in the script
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/gentoo-distfiles-mirror/files/0.1/portage-incremirror | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app-admin/gentoo-distfiles-mirror/files/0.1/portage-incremirror b/app-admin/gentoo-distfiles-mirror/files/0.1/portage-incremirror index 6610ecbaad30..77380cf6ee75 100644 --- a/app-admin/gentoo-distfiles-mirror/files/0.1/portage-incremirror +++ b/app-admin/gentoo-distfiles-mirror/files/0.1/portage-incremirror @@ -206,7 +206,7 @@ else case $line in [Cc]ontent-[Ll]ength:*) len=$(echo "$line" | sed -r -e 's/.*[Cc]ontent-[Ll]ength:[ ]*([0-9]+).*$/\1/'); - dsf=$(df -B1 "${O_DISTFILES}" | head -n2 | tail -n1 | awk '{ print $4 }'); + dsf=$(df -P -B1 "${O_DISTFILES}" | tail -n1 | awk '{ print $4 }'); if [ "$(($dsf - $len))" -lt "${O_MINFREE}" ]; then log err "Not enough free disk space for file: ${P_FILE} requested by ${P_REMOTE}" httpredirect "${O_MIRROR}/${P_FILE}" |