]> git.saurik.com Git - apt.git/commitdiff
reenable support for -s (and co) in apt-get source
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 18 Oct 2014 12:44:41 +0000 (14:44 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 10 Nov 2014 16:23:29 +0000 (17:23 +0100)
The conversion to accept only relevant options for commands has
forgotten another one, so adding it again even through the usecase might
very well be equally good served by --print-uris.

Closes: 742578
apt-private/private-cmndline.cc
test/integration/test-apt-get-source

index a4490f5b41491c5b178d9415fcb6ee768a5e1fee..0b5ba5b4fdf81c07846dacdbe2c06810dc2cbffb 100644 (file)
@@ -166,7 +166,7 @@ static bool addArgumentsAPTGet(std::vector<CommandLine::Args> &Args, char const
 
    if (CmdMatches("install", "remove", "purge", "upgrade", "dist-upgrade",
            "deselect-upgrade", "autoremove", "clean", "autoclean", "check",
-           "build-dep", "full-upgrade"))
+           "build-dep", "full-upgrade", "source"))
    {
       addArg('s', "simulate", "APT::Get::Simulate", 0);
       addArg('s', "just-print", "APT::Get::Simulate", 0);
index 33bd980d0c34cd3329dbe4400171320d846f4d72..b27cbbe96590d3876df3a47faf4a3576f85a4803 100755 (executable)
@@ -82,3 +82,7 @@ testequal "$HEADER
 Need to get 0 B of source archives.
 'file://${APTARCHIVE}/foo_0.0.1.dsc' foo_0.0.1.dsc 0 MD5Sum:d41d8cd98f00b204e9800998ecf8427e
 'file://${APTARCHIVE}/foo_0.0.1.tar.gz' foo_0.0.1.tar.gz 0 MD5Sum:d41d8cd98f00b204e9800998ecf8427e" aptget source -q --print-uris -t unstable foo=0.0.1
+
+testequal "$HEADER
+Need to get 0 B of source archives.
+Fetch source foo" aptget source -q -s foo