summaryrefslogtreecommitdiff
path: root/methods/rred.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-12-27 13:25:23 +0100
committerJulian Andres Klode <jak@debian.org>2015-12-27 13:25:23 +0100
commit18b162814683ecb7978dec49acf1db2b647defaa (patch)
tree41e36868c69d5c578541b8d2a065dea3d53945e1 /methods/rred.cc
parent147041626609e95700781bea045f8e8ea18370a3 (diff)
rred: Only call pkgInitConfig() in test mode
This accidentally slipped in in a previous commit, but it should be used only for testing mode. Reported-By: David Kalnischkies <david@kalnischkies.de>
Diffstat (limited to 'methods/rred.cc')
-rw-r--r--methods/rred.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/rred.cc b/methods/rred.cc
index 89d706984..5a1053019 100644
--- a/methods/rred.cc
+++ b/methods/rred.cc
@@ -693,8 +693,6 @@ int main(int argc, char **argv)
bool test = false;
Patch patch;
- pkgInitConfig(*_config);
-
if (argc <= 1) {
RredMethod Mth;
return Mth.Run();
@@ -702,6 +700,8 @@ int main(int argc, char **argv)
// Usage: rred -t input output diff ...
if (argc > 1 && strcmp(argv[1], "-t") == 0) {
+ // Read config files so we see compressors.
+ pkgInitConfig(*_config);
just_diff = false;
test = true;
i = 4;