diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-30 15:28:21 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-30 15:28:21 +0200 |
commit | 8dfb8a0ab2c2a06e319678701c144e5156d7e869 (patch) | |
tree | 481977dd64aafa54abe141bd1a7b70e50bf1c976 /cmdline | |
parent | d82cdf7391f04a98e5fb954ca23506f7f52435b0 (diff) |
* cmdline/apt-get.cc:
- honor APT::Get::Only-Source properly in FindSrc() (thanks to
Martin Pitt for reporting the problem)
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 27e16d3f3..2693bd968 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1260,7 +1260,8 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs, /* Lookup the version of the package we would install if we were to install a version and determine the source package name, then look in the archive for a source package of the same name. */ - if (_config->FindB("APT::Get::Only-Source") == false) + bool MatchSrcOnly = _config->FindB("APT::Get::Only-Source"); + if (MatchSrcOnly == false) { if (Pkg.end() == false) { @@ -1278,7 +1279,6 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs, unsigned long Offset = 0; string Version; bool IsMatch = false; - bool MatchSrcOnly = false; // No source package name.. if (Src.empty() == true) |