]> git.saurik.com Git - apt.git/commitdiff
fix an inverted check on build-deps: we were accidentally checking for
authorSteve Langasek <steve.langasek@canonical.com>
Sat, 28 Jan 2012 20:27:11 +0000 (20:27 +0000)
committerSteve Langasek <steve.langasek@canonical.com>
Sat, 28 Jan 2012 20:27:11 +0000 (20:27 +0000)
host-arch packages whenever the build-dep *did* include a colon, instead of
when it didn't.

cmdline/apt-get.cc

index 2d0554e21c3f077be5b81f657bcbe49d342b5a6b..45459de4342797574b56e6fbf6f04debcc7b57dc 100644 (file)
@@ -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";