+ Cnf.Set("Dir::Bin::methods","/usr/lib/apt/methods");
+ Cnf.Set("Dir::Bin::dpkg","/usr/bin/dpkg");
+
+ // Read the main config file
+ string FName = Cnf.FindFile("Dir::Etc::main");
+ bool Res = true;
+ if (FileExists(FName) == true)
+ Res &= ReadConfigFile(Cnf,FName);
+
+ // Read an alternate config file
+ const char *Cfg = getenv("APT_CONFIG");
+ if (Cfg != 0 && FileExists(Cfg) == true)
+ Res &= ReadConfigFile(Cnf,Cfg);
+
+ if (Res == false)
+ return false;