X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/21231056c2f4fb82730c0ac7e7f90456668cae38..7d996eb001072ccdeae9ec37e37313a37946c5c1:/cmdline/apt-config.cc diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index 63fa0867c..589ee7ada 100644 --- a/cmdline/apt-config.cc +++ b/cmdline/apt-config.cc @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include #include @@ -27,6 +29,7 @@ #include #include #include +#include /*}}}*/ using namespace std; @@ -88,8 +91,7 @@ int ShowHelp() return 0; } /*}}}*/ - -int main(int argc,const char *argv[]) +int main(int argc,const char *argv[]) /*{{{*/ { CommandLine::Args Args[] = { {'h',"help","help",0}, @@ -120,6 +122,16 @@ int main(int argc,const char *argv[]) CmdL.FileSize() == 0) return ShowHelp(); + std::vector const langs = APT::Configuration::getLanguages(true); + _config->Clear("Acquire::Languages"); + for (std::vector::const_iterator l = langs.begin(); l != langs.end(); ++l) + _config->Set("Acquire::Languages::", *l); + + std::vector const archs = APT::Configuration::getArchitectures(); + _config->Clear("APT::Architectures"); + for (std::vector::const_iterator a = archs.begin(); a != archs.end(); ++a) + _config->Set("APT::Architectures::", *a); + // Match the operation CmdL.DispatchArg(Cmds); @@ -133,3 +145,4 @@ int main(int argc,const char *argv[]) return 0; } + /*}}}*/