]> git.saurik.com Git - apt.git/commitdiff
* cmdline/apt-get.cc:
authorThibaut Girka <thib@sitedethib.com>
Sun, 10 Jun 2012 11:06:11 +0000 (13:06 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 10 Jun 2012 11:06:11 +0000 (13:06 +0200)
  - complain correctly about :any build-dep on M-A:none packages

cmdline/apt-get.cc
debian/changelog

index ef16a78701f8883b48d860a62f20cc44ac3366e2..a4fd3cfb98f72501d1331ce19a5e0c6332000f97 100644 (file)
@@ -2919,9 +2919,9 @@ bool DoBuildDep(CommandLine &CmdL)
                  if (Ver->MultiArch == pkgCache::Version::None || Ver->MultiArch == pkgCache::Version::All)
                  {
                     if (colon == string::npos)
-                    {
                        Pkg = Ver.ParentPkg().Group().FindPkg(hostArch);
-                    }
+                    else if (strcmp(D->Package.c_str() + colon, ":any") == 0)
+                       forbidden = "Multi-Arch: none";
                  }
                  else if (Ver->MultiArch == pkgCache::Version::Same)
                  {
@@ -2956,13 +2956,13 @@ bool DoBuildDep(CommandLine &CmdL)
                  if (forbidden.empty() == false)
                  {
                     if (_config->FindB("Debug::BuildDeps",false) == true)
-                       cout << " :any is not allowed from M-A: same package " << (*D).Package << endl;
+                       cout << D->Package.substr(colon, string::npos) << " is not allowed from " << forbidden << " package " << (*D).Package << endl;
                     if (hasAlternatives)
                        continue;
                     return _error->Error(_("%s dependency for %s can't be satisfied "
                                            "because %s is not allowed on '%s' packages"),
                                          Last->BuildDepType(D->Type), Src.c_str(),
-                                         D->Package.c_str(), "Multi-Arch: same");
+                                         D->Package.c_str(), forbidden.c_str());
                  }
               }
               else if (_config->FindB("Debug::BuildDeps",false) == true)
index 91511f2e77b10a9ae76f2f4747865f7b86685769..720b072738357a53db2c1f431ef7fe0d0a1ad8bc 100644 (file)
@@ -64,6 +64,10 @@ apt (0.9.5.2) UNRELEASED; urgency=low
   * French program and manpage translation update
   * Danish program translation by Joe Hansen. Closes: #675605
 
+  [ Thibaut Girka ]
+  * cmdline/apt-get.cc:
+    - complain correctly about :any build-dep on M-A:none packages
+
  -- David Kalnischkies <kalnischkies@gmail.com>  Wed, 06 Jun 2012 23:54:01 +0200
 
 apt (0.9.5.1) unstable; urgency=low