aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkabel2011-02-15 20:40:16 +0000
committerJason Woodward2011-02-15 20:40:16 +0000
commit23a19d89d11b3661fde494ffa7ec841f0fc45ea3 (patch)
tree0947695bdf6d028067a0c6271950f93b709361c5
parenta1496e97ae9d757c3df20138425ba4178280f1c6 (diff)
downloadslapt-get-23a19d89d11b3661fde494ffa7ec841f0fc45ea3.tar.gz
fix parse_meta_tag() to match '+' in package name
parse_meta_tag() does not match packages with '+' in their names. Example: MPlayer with dependency libva >= 0.31.1+sds4-i486-3sl Signed-off-by: Jason Woodward <woodwardj@jaos.org>
-rw-r--r--src/package.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/package.h b/src/package.h
index 429e495..4726425 100644
--- a/src/package.h
+++ b/src/package.h
@@ -15,7 +15,7 @@
#define SLAPT_ROOT_ENV_LEN 255
#define SLAPT_PKG_LOG_PATTERN "^(.*{1,})\\-(.*[\\-].*[\\-].*)"
#define SLAPT_MD5SUM_REGEX "([a-zA-Z0-9]{1,})[ ]{1,}([a-zA-Z0-9\\/._+\\-]{1,})\\/(.*{1,})\\-(.*[\\-].*[\\-].*)\\.[tgblzikx]+$"
-#define SLAPT_REQUIRED_REGEX "^[ ]{0,}([^ ]{1,})[ ]{0,}([\\<\\=\\>]+){0,}[ ]{0,}([a-zA-Z0-9\\.\\_\\-]+){0,}[ ]{0,}$"
+#define SLAPT_REQUIRED_REGEX "^[ ]{0,}([^ ]{1,})[ ]{0,}([\\<\\=\\>]+){0,}[ ]{0,}([a-zA-Z0-9\\+\\.\\_\\-]+){0,}[ ]{0,}$"
#define SLAPT_MD5_STR_LEN 33
#define SLAPT_PKG_LIST "PACKAGES.TXT"
#define SLAPT_PKG_LIST_GZ "PACKAGES.TXT.gz"