[Slapt-get-devel] slapt-get: Incorrect definition of patterns SLAPT_PKG_LOG_SIZE[CU]_PATTERN
Igor Murzov
intergalactic.anonymous at gmail.com
Sun Jun 26 21:17:20 EDT 2011
Definition of pattern is following:
#define SLAPT_PKG_LOG_SIZEU_PATTERN "^UNCOMPRESSED PACKAGE SIZE:[ ]{1,}([0-9]
{1,})[ ]{0,}K$"
There is a 'K' letter at the end of the pattern. But for large installed
packages size could be saved in Megabytes instead of Kilobytes:
$ grep 'PACKAGE SIZE' /var/log/packages/mozilla-firefox-5.0-i486-1_slack13.37
COMPRESSED PACKAGE SIZE: 12M
UNCOMPRESSED PACKAGE SIZE: 32M
Incorrect patterns result in wrong "additional disk space" calculations:
# LANG=C slapt-get -s -i mozilla-firefox
Reading Package Lists...Done
The following packages will be upgraded:
mozilla-firefox
1 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Need to get 10.9MB of archives.
After unpacking 32.3MB of additional disk space will be used.
mozilla-firefox-5.0-i486-1_slack13.37 is to be upgraded to version 4.0.1-
i486-1_slack13.37
Done
Both packages are almost equal in size, so additional disk space should be
approximately equal to zero.
-- Igor
More information about the Slapt-get-devel
mailing list