aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2009-05-23 19:56:04 +0000
committerJason Woodward2009-05-23 19:56:04 +0000
commit6a6bb6289e2dd0054e6d2e8c37ed49ee840a4911 (patch)
tree1025583dbc4a34fb67681842ed860ba9dd8b0ca1 /src
parentfda93869675f60879f78b251a8a8a5891d2e0998 (diff)
downloadslapt-get-6a6bb6289e2dd0054e6d2e8c37ed49ee840a4911.tar.gz
updated parsing of compressed and uncompressed sizes in /var/log/packages entries
Diffstat (limited to 'src')
-rw-r--r--src/package.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/package.h b/src/package.h
index 10a32d8..f65b2a4 100644
--- a/src/package.h
+++ b/src/package.h
@@ -8,8 +8,8 @@
#define SLAPT_PKG_LOCATION_PATTERN "^PACKAGE LOCATION:[ ]+(.*)$"
#define SLAPT_PKG_SIZEC_PATTERN "^PACKAGE SIZE [(]+compressed[)]{1,}:[ ]{1,}([0-9]{1,}) K$"
#define SLAPT_PKG_SIZEU_PATTERN "^PACKAGE SIZE [(]+uncompressed[)]{1,}:[ ]{1,}([0-9]{1,}) K$"
-#define SLAPT_PKG_LOG_SIZEC_PATTERN "^COMPRESSED PACKAGE SIZE:[ ]{1,}([0-9]{1,}) K$"
-#define SLAPT_PKG_LOG_SIZEU_PATTERN "^UNCOMPRESSED PACKAGE SIZE:[ ]{1,}([0-9]{1,}) K$"
+#define SLAPT_PKG_LOG_SIZEC_PATTERN "^COMPRESSED PACKAGE SIZE:[ ]{1,}([0-9]{1,})[ ]{0,}K$"
+#define SLAPT_PKG_LOG_SIZEU_PATTERN "^UNCOMPRESSED PACKAGE SIZE:[ ]{1,}([0-9]{1,})[ ]{0,}K$"
#define SLAPT_PKG_LOG_DIR "/var/log/packages"
#define SLAPT_ROOT_ENV_NAME "ROOT"
#define SLAPT_ROOT_ENV_LEN 255