projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a97320a
)
Fix parsing of apt-get download size.
author
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Thu, 17 Jul 2008 07:38:21 +0000
(09:38 +0200)
committer
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Thu, 17 Jul 2008 07:38:21 +0000
(09:38 +0200)
src/functions.sh
patch
|
blob
|
history
diff --git
a/src/functions.sh
b/src/functions.sh
index
0af728b
..
56d8a9e
100644
(file)
--- a/
src/functions.sh
+++ b/
src/functions.sh
@@
-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"
}