aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--example.slapt-getrc6
-rw-r--r--src/package.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/example.slapt-getrc b/example.slapt-getrc
index d022c5a..eaac115 100644
--- a/example.slapt-getrc
+++ b/example.slapt-getrc
@@ -22,9 +22,15 @@ SOURCE=ftp://ftp.slackware.at/slackware-9.1/
#SOURCE=ftp://ftp.linuxpackages.net/pub/Slackware-9.1/
# * no current with linuxpackages.net
+# other unofficial sources
+#SOURCE=http://www.tenboard.com/slackware/slackware-9.0/
+#SOURCE=http://www.tenboard.com/slackware/slackware-9.1/
+#SOURCE=http://www.slack.it/slackpack/
+
# pull from your cdrom
#SOURCE=file:///mnt/cdrom/
+
# Other slackware mirrors to choose from
#SOURCE=ftp://ftp.slackware.no/pub/linux/slackware/slackware-9.1/
#SOURCE=ftp://ftp.slackware.at/slackware-9.1/
diff --git a/src/package.c b/src/package.c
index 739f88f..85ab7a9 100644
--- a/src/package.c
+++ b/src/package.c
@@ -829,12 +829,18 @@ void get_md5sum(const rc_config *global_config,pkg_info_t *pkg,char *md5_sum){
&& (cmp_pkg_versions(pkg->version,version) == 0)
&& (strcmp(pkg->location,location) == 0)
){
+ #if DEBUG == 1
+ printf("%s-%s@%s, %s-%s@%s: %s\n",pkg->name,pkg->version,pkg->location,name,version,location,sum);
+ #endif
memcpy(md5_sum,sum,md5sum_regex.pmatch[1].rm_eo - md5sum_regex.pmatch[1].rm_so + 1);
break;
}
}
}
+ #if DEBUG == 1
+ printf("%s-%s@%s = %s\n",pkg->name,pkg->version,pkg->location,md5_sum);
+ #endif
fclose(checksum_file);
chdir(cwd);
free(cwd);