aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2003-10-10 03:00:01 +0000
committerJason Woodward2003-10-10 03:00:01 +0000
commit4521beadba82b5bee40b76a39932096109818e8a (patch)
treeb90d91a5491574c55ea6a430785aba923ab6c582
parent9ae3ab782c29e84b3cfb654bd15ebfef64ddc504 (diff)
downloadslapt-get-4521beadba82b5bee40b76a39932096109818e8a.tar.gz
updated regex for double space
-rw-r--r--src/package.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/package.h b/src/package.h
index 2e144b1..b4c3c21 100644
--- a/src/package.h
+++ b/src/package.h
@@ -18,10 +18,10 @@
#define MAX_PKG_ENTRIES 1300
#define PKG_PARSE_REGEX "([a-zA-Z0-9._\\-\\/]+/)([a-zA-Z0-9\\+_\\-]+)-([a-zA-Z0-9._\\-]+).tgz$"
-#define PKG_NAME_PATTERN "^PACKAGE NAME: ([a-zA-Z0-9\\+_\\-]+)-([a-zA-Z0-9._\\-]+).tgz$"
-#define PKG_LOCATION_PATTERN "^PACKAGE LOCATION: (.*)$"
-#define PKG_SIZEC_PATTERN "^PACKAGE SIZE [(]+compressed[)]+: ([0-9]+) K$"
-#define PKG_SIZEU_PATTERN "^PACKAGE SIZE [(]+uncompressed[)]+: ([0-9]+) K$"
+#define PKG_NAME_PATTERN "^PACKAGE NAME:[ ]+([a-zA-Z0-9\\+_\\-]+)-([a-zA-Z0-9._\\-]+).tgz$"
+#define PKG_LOCATION_PATTERN "^PACKAGE LOCATION:[ ]+(.*)$"
+#define PKG_SIZEC_PATTERN "^PACKAGE SIZE [(]+compressed[)]+:[ ]+([0-9]+) K$"
+#define PKG_SIZEU_PATTERN "^PACKAGE SIZE [(]+uncompressed[)]+:[ ]+([0-9]+) K$"
#define PKG_LOG_DIR "/var/log/packages"
#define PKG_LOG_PATTERN "^([a-zA-Z0-9\\+_\\-]+)-([a-zA-Z0-9._\\-]+)$"
#define MD5SUM_REGEX "([a-zA-Z0-9]+)[ ]+([a-zA-Z0-9._\\-\\/]+/)([a-zA-Z0-9\\+_\\-]+)-([a-zA-Z0-9._\\-]+).tgz$"