aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2008-11-23 18:27:26 +0000
committerJason Woodward2008-11-23 18:27:26 +0000
commitd1724dbc6d0b321a218d21d8f538b6a3545eb538 (patch)
tree34f29819ef081483859e9de0f207e272b0568d9e /src
parent5f2b44d8cf9b72a91c2debae81c6619e5b8bf35d (diff)
downloadslapt-get-d1724dbc6d0b321a218d21d8f538b6a3545eb538.tar.gz
Added support for ikg extension (requested by Miguel Reynosso)
Diffstat (limited to 'src')
-rw-r--r--src/package.c1
-rw-r--r--src/package.h6
2 files changed, 4 insertions, 3 deletions
diff --git a/src/package.c b/src/package.c
index 83880e0..0dd10ac 100644
--- a/src/package.c
+++ b/src/package.c
@@ -952,6 +952,7 @@ void slapt_get_md5sums(struct slapt_pkg_list *pkgs, FILE *checksum_file)
if (
(strstr(getline_buffer,".tgz") == NULL) &&
(strstr(getline_buffer,".tlz") == NULL) &&
+ (strstr(getline_buffer,".ikg") == NULL) &&
(strstr(getline_buffer,".tbz") == NULL)
)
continue;
diff --git a/src/package.h b/src/package.h
index ed52871..835b377 100644
--- a/src/package.h
+++ b/src/package.h
@@ -1,8 +1,8 @@
-#define SLAPT_PKG_PARSE_REGEX "(.*{1,})\\-(.*[\\-].*[\\-].*).t[gbl]z[ ]{0,}$"
+#define SLAPT_PKG_PARSE_REGEX "(.*{1,})\\-(.*[\\-].*[\\-].*)\\.[tgblzik]+[ ]{0,}$"
#define SLAPT_PKG_NAMEVER "(.*{1,})\\-(.*[\\-].*[\\-].*)"
#define SLAPT_PKG_VER "(.*)[\\-](.*)[\\-](.*)"
-#define SLAPT_PKG_NAME_PATTERN "^PACKAGE NAME:[ ]{1,}(.*{1,})\\-(.*[\\-].*[\\-].*)(.t[gbl]z)[ ]{0,}$"
+#define SLAPT_PKG_NAME_PATTERN "^PACKAGE NAME:[ ]{1,}(.*{1,})\\-(.*[\\-].*[\\-].*)(\\.[tgblzik]+)[ ]{0,}$"
#define SLAPT_PKG_MIRROR_PATTERN "^PACKAGE MIRROR:[ ]+(.*)$"
#define SLAPT_PKG_LOCATION_PATTERN "^PACKAGE LOCATION:[ ]+(.*)$"
#define SLAPT_PKG_SIZEC_PATTERN "^PACKAGE SIZE [(]+compressed[)]{1,}:[ ]{1,}([0-9]{1,}) K$"
@@ -13,7 +13,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,})\\-(.*[\\-].*[\\-].*).t[gbl]z$"
+#define SLAPT_MD5SUM_REGEX "([a-zA-Z0-9]{1,})[ ]{1,}([a-zA-Z0-9\\/._\\-]{1,})\\/(.*{1,})\\-(.*[\\-].*[\\-].*)\\.[tgblzik]+$"
#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"