summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2012-01-28 20:27:11 +0000
committerSteve Langasek <steve.langasek@canonical.com>2012-01-28 20:27:11 +0000
commit765019f72bad10bbb48bf01d473bbccbbb892361 (patch)
tree1523eaa2c34fb7aebea1387f9f517b31333d7134 /cmdline/apt-get.cc
parent3102af74e7ffaab3f47741c05451ce7f0e3b38fe (diff)
fix an inverted check on build-deps: we were accidentally checking for
host-arch packages whenever the build-dep *did* include a colon, instead of when it didn't.
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 2d0554e21..45459de43 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -2866,7 +2866,7 @@ bool DoBuildDep(CommandLine &CmdL)
if (Ver->MultiArch == pkgCache::Version::None || Ver->MultiArch == pkgCache::Version::All);
else if (Ver->MultiArch == pkgCache::Version::Same)
{
- if (colon != string::npos)
+ if (colon == string::npos)
Pkg = Ver.ParentPkg().Group().FindPkg(hostArch);
else if (strcmp(D->Package.c_str() + colon, ":any") == 0)
forbidden = "Multi-Arch: same";