diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-06-08 23:06:54 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-06-08 23:06:54 +0200 |
commit | 1979e742ad5e2a0b6e547fbe3f4c4066b5a9bd2e (patch) | |
tree | 2a3b7b4a96789ab25a24b637777609fd526a3f9f /cmdline/apt-get.cc | |
parent | 152ab79e05f077440d76c1c423b013eaeb3fe2ff (diff) |
* add --dsc-only option, thanks to K. Richard Pixley
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r-- | cmdline/apt-get.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index c79c1559e..6bbc40242 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1954,6 +1954,11 @@ bool DoSource(CommandLine &CmdL) I->Type != "tar") continue; + // Dsc only mode only fetches .dsc files + if (_config->FindB("APT::Get::Dsc-Only",false) == true && + I->Type != "dsc") + continue; + // don't download the same uri twice (should this be moved to // the fetcher interface itself?) if(queued.find(Last->Index().ArchiveURI(I->Path)) != queued.end()) @@ -2536,7 +2541,8 @@ int main(int argc,const char *argv[]) {0,"force-yes","APT::Get::force-yes",0}, {0,"print-uris","APT::Get::Print-URIs",0}, {0,"diff-only","APT::Get::Diff-Only",0}, - {0,"tar-only","APT::Get::tar-Only",0}, + {0,"tar-only","APT::Get::Tar-Only",0}, + {0,"dsc-only","APT::Get::Dsc-Only",0}, {0,"purge","APT::Get::Purge",0}, {0,"list-cleanup","APT::Get::List-Cleanup",0}, {0,"reinstall","APT::Get::ReInstall",0}, |