]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-get.cc
merged (and resolved a bunch of conflicts) of the debian-sid branch
[apt.git] / cmdline / apt-get.cc
index c996017b8906bb4af1679f7e3fd181680f8176c3..1c6d3982411ace3f784632af6c7aabe9746d0f8e 100644 (file)
@@ -2496,7 +2496,7 @@ bool DoSource(CommandLine &CmdL)
                  Src.c_str(), vcs.c_str(), uri.c_str());
         if(vcs == "Bzr") 
            ioprintf(c1out,_("Please use:\n"
-                            "bzr get %s\n"
+                            "bzr branch %s\n"
                             "to retrieve the latest (possibly unreleased) "
                             "updates to the package.\n"),
                     uri.c_str());
@@ -2913,7 +2913,7 @@ bool DoBuildDep(CommandLine &CmdL)
               if ((BADVER(Ver)) == false)
               {
                  string forbidden;
-                 if (Ver->MultiArch == pkgCache::Version::None || Ver->MultiArch == pkgCache::Version::All)
+                 if (Ver->MultiArch == pkgCache::Version::None)
                  {
                     if (colon == string::npos)
                     {
@@ -2928,7 +2928,7 @@ bool DoBuildDep(CommandLine &CmdL)
                        forbidden = "Multi-Arch: same";
                     // :native gets the buildArch
                  }
-                 else if ((Ver->MultiArch & pkgCache::Version::Foreign) == pkgCache::Version::Foreign)
+                 else if ((Ver->MultiArch & pkgCache::Version::Foreign) == pkgCache::Version::Foreign || Ver->MultiArch == pkgCache::Version::All)
                  {
                     if (colon != string::npos)
                        forbidden = "Multi-Arch: foreign";
@@ -3204,7 +3204,10 @@ bool DownloadChangelog(CacheFile &CacheFile, pkgAcquire &Fetcher,
       return true;
 
    // error
-   return _error->Error("changelog download failed");
+   pkgRecords Recs(CacheFile);
+   pkgRecords::Parser &rec=Recs.Lookup(Ver.FileList());
+   string srcpkg = rec.SourcePkg().empty() ? Pkg.Name() : rec.SourcePkg();
+   return _error->Error("changelog for this version is not (yet) available; try https://launchpad.net/ubuntu/+source/%s/+changelog", srcpkg.c_str());
 }
                                                                        /*}}}*/
 // DisplayFileInPager - Display File with pager                                /*{{{*/