aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2007-10-04 02:45:51 +0000
committerJason Woodward2007-10-04 02:45:51 +0000
commitb3aa1bb2a24ed470b76c4fc8df29301763747a44 (patch)
treecbb14f4cff6220beb7a398538ecc628355bc6e63 /src
parente1089a4b219ddb38b830f691dc88c1753fbd19d0 (diff)
downloadslapt-get-b3aa1bb2a24ed470b76c4fc8df29301763747a44.tar.gz
compile time definition for SLACKWARE_EXTRA_TESTING_PASTURE_WORKAROUND (see package.c for comment)
Diffstat (limited to 'src')
-rw-r--r--src/main.h1
-rw-r--r--src/package.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 8577218..6f266f6 100644
--- a/src/main.h
+++ b/src/main.h
@@ -95,4 +95,5 @@ enum slapt_action {
#endif
#define SLAPT_DO_NOT_UNLINK_BAD_FILES 1
+#define SLACKWARE_EXTRA_TESTING_PASTURE_WORKAROUND 1
diff --git a/src/package.c b/src/package.c
index df72ad3..0bb2305 100644
--- a/src/package.c
+++ b/src/package.c
@@ -147,6 +147,7 @@ struct slapt_pkg_list *slapt_parse_packages_txt(FILE *pkg_list_fh)
tmp_pkg->location = slapt_regex_extract_match(location_regex, getline_buffer, 1);
+#if SLACKWARE_EXTRA_TESTING_PASTURE_WORKAROUND == 1
/*
extra, testing, and pasture support
they add in extraneous /extra/, /testing/, or /pasture/ in the
@@ -193,6 +194,7 @@ struct slapt_pkg_list *slapt_parse_packages_txt(FILE *pkg_list_fh)
free(tmp_pkg->location);
tmp_pkg->location = tmp_location;
}
+#endif
} else {
fprintf(stderr,gettext("regexec failed to parse location\n"));