]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-cmndline.cc
refactor dpkg execution in deb/debsystem
[apt.git] / apt-private / private-cmndline.cc
index 3a1564b238ab0f5d321fa3b37e3e11ead38f80c4..7190fe50bb2384af5462d578c32d6db9084d6bc9 100644 (file)
@@ -70,7 +70,11 @@ static bool addArgumentsAPTCache(std::vector<CommandLine::Args> &Args, char cons
    {
       addArg('i', "important", "APT::Cache::Important", 0);
    }
-   else if (CmdMatches("gencaches", "showsrc", "showpkg", "stats", "dump",
+   else if (CmdMatches("showsrc"))
+   {
+      addArg(0,"only-source","APT::Cache::Only-Source",0);
+   }
+   else if (CmdMatches("gencaches", "showpkg", "stats", "dump",
            "dumpavail", "showauto", "policy", "madison"))
       ;
    else
@@ -244,9 +248,9 @@ static bool addArgumentsAPT(std::vector<CommandLine::Args> &Args, char const * c
 {
    if (CmdMatches("list"))
    {
-      addArg(0,"installed","APT::Cmd::Installed",0);
+      addArg('i',"installed","APT::Cmd::Installed",0);
       addArg(0,"upgradeable","APT::Cmd::Upgradable",0);
-      addArg(0,"upgradable","APT::Cmd::Upgradable",0);
+      addArg('u',"upgradable","APT::Cmd::Upgradable",0);
       addArg(0,"manual-installed","APT::Cmd::Manual-Installed",0);
       addArg('v', "verbose", "APT::Cmd::List-Include-Summary", 0);
       addArg('a', "all-versions", "APT::Cmd::All-Versions", 0);