[Slapt-get-devel] [PATCH] Plus sign handling in package location in MD5 files

Ondrej Zary linux at rainbow-software.org
Wed May 13 10:16:20 EDT 2009


Hello,
this patch fixes handling of a plus sign in package location (path) in MD5
files. This fixes the "Missing MD5 checksum, override with --no-md5" message
when attempting to install a package containing plus in name (such as
libsigc++) from
http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-12.2/


diff -urN slapt-get-0.10.1a/src/package.h slapt-get-0.10.1a-fixed/src/package.h
--- slapt-get-0.10.1a/src/package.h	2009-04-28 23:24:12.000000000 +0200
+++ slapt-get-0.10.1a-fixed/src/package.h	2009-05-13 16:01:02.000000000 +0200
@@ -14,7 +14,7 @@
 #define SLAPT_ROOT_ENV_NAME "ROOT"
 #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_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_MD5_STR_LEN 33
 #define SLAPT_PKG_LIST "PACKAGES.TXT"


-- 
Ondrej Zary


More information about the Slapt-get-devel mailing list