]> git.saurik.com Git - apt.git/commitdiff
merged from the mvo branch
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 13:35:13 +0000 (14:35 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 13:35:13 +0000 (14:35 +0100)
1  2 
cmdline/apt-get.cc

diff --combined cmdline/apt-get.cc
index 5a3275c15b466c958d50750779f759047c91e4d8,6e1a5280ce2310b148dc233c2c8b235d3d6e4bdb..8754744da5fc3fe3186233313e37533dd21b6e7b
@@@ -2183,7 -2183,6 +2183,6 @@@ bool DoDownload(CommandLine &CmdL
     if (verset.empty() == true)
        return false;
  
-    bool result = true;
     pkgRecords Recs(Cache);
     pkgSourceList *SrcList = Cache.GetSourceList();
     for (APT::VersionSet::const_iterator Ver = verset.begin(); 
           hash = HashString("md5", rec.MD5Hash());
        // get the file
        new pkgAcqFile(&Fetcher, uri, hash.toStr(), (*Ver)->Size, descr, Pkg.Name(), ".");
-       result &= (Fetcher.Run() == pkgAcquire::Continue);
     }
+    bool result = (Fetcher.Run() == pkgAcquire::Continue);
  
     return result;
  }
@@@ -2891,10 -2890,7 +2890,10 @@@ bool DownloadChangelog(CacheFile &Cache
        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                               /*{{{*/