Fix parsing of apt-get download size.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 17 Jul 2008 07:38:21 +0000 (09:38 +0200)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 17 Jul 2008 07:38:21 +0000 (09:38 +0200)
src/functions.sh

index 0af728b..56d8a9e 100644 (file)
@@ -863,7 +863,7 @@ free_space() {
 download_size() {
   local size
   size=$(LC_ALL=C apt-get --yes --print-uris "$@" \
-         | sed -n '/^Need to get / {s///; s/B\/.*//; p}')
+         | sed -n '/^Need to get / {s///; s/B.*//; p}')
 
   size_to_mb "${size}B"
 }