From: Julian Andres Klode Date: Sun, 27 Dec 2015 12:25:23 +0000 (+0100) Subject: rred: Only call pkgInitConfig() in test mode X-Git-Tag: 1.1.9~11 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/18b162814683ecb7978dec49acf1db2b647defaa 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 --- 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;