summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-10-19 11:47:11 +0200
committerAllan McRae <allan@archlinux.org>2013-10-31 16:20:02 +1000
commit6405ecb25995e7cb4ec8b4603d6cfed9d58bf22a (patch)
tree5f5074aa6e9c52a03d692a7cba21d061a5f85d81 /test
parent7e767b7e90755f5b8c90b37e68ae14098fba5520 (diff)
downloadpacman-6405ecb25995e7cb4ec8b4603d6cfed9d58bf22a.tar.xz
pacman -Si/-Qi: Autodetect best fitting file size unit
I've tracked this back to e223366 and it looks like this just forces KiB because back then humanize_size didn't exist, but the size was just divided by 1024 to keep it somewhat readable. When humanize_size got introduced in 3c8a448 this was just carried over. The unit detected for "Download Size" is reused for "Installed Size" to make it easier to read. Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/tests/query006.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pacman/tests/query006.py b/test/pacman/tests/query006.py
index 0f6f762b..5defd877 100644
--- a/test/pacman/tests/query006.py
+++ b/test/pacman/tests/query006.py
@@ -20,7 +20,7 @@ self.args = "-Qi %s" % p.name
self.addrule("PACMAN_RETCODE=0")
self.addrule("PACMAN_OUTPUT=^Name.*%s" % p.name)
self.addrule("PACMAN_OUTPUT=^Description.*%s" % p.desc)
-self.addrule("PACMAN_OUTPUT=^Installed Size.*9765625.00 KiB")
+self.addrule("PACMAN_OUTPUT=^Installed Size.*9.31 GiB")
self.addrule("PACMAN_OUTPUT=^Build Date.* 2065")
self.addrule("PACMAN_OUTPUT=^Install Date.* 2286")