aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xurpmi-proxy.cgi4
-rw-r--r--urpmi-proxy.conf2
2 files changed, 3 insertions, 3 deletions
diff --git a/urpmi-proxy.cgi b/urpmi-proxy.cgi
index 38c57ba..bb1fec2 100755
--- a/urpmi-proxy.cgi
+++ b/urpmi-proxy.cgi
@@ -15,7 +15,7 @@ my $cache_path = '/var/cache/urpmi-proxy';
my $logfile = '/var/log/urpmi-proxy.log';
my $check_updates_only_files = '(MD5SUM|descriptions)';
my $check_no_updates_files;
-my $merge_files = 'media.cfg';
+my $merge_files = undef;
my $sources = [
'urpmi'
];
@@ -85,7 +85,7 @@ if (defined $check_updates_only_files) {
}
# check if request needs merging
-$merge = 1 if $filename =~ m/$merge_files/;
+$merge = 1 if defined $merge_files && $filename =~ m/$merge_files/;
$check_file = 1 if $merge;
print STDERR "check_file: $check_file\n" if $debug;
diff --git a/urpmi-proxy.conf b/urpmi-proxy.conf
index 1775653..ccb6bd3 100644
--- a/urpmi-proxy.conf
+++ b/urpmi-proxy.conf
@@ -43,7 +43,7 @@
# $check_no_updates_files = undef;
## These files will be merged from every sources.
-# $merge_files = 'media.cfg';
+# $merge_files = undef;
## These are the tuning settings when downloading files.
# $connect_timeout = 120;