From 18b162814683ecb7978dec49acf1db2b647defaa Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 27 Dec 2015 13:25:23 +0100 Subject: 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 --- methods/rred.cc | 4 ++-- 1 file 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; -- cgit v1.2.3