]> git.saurik.com Git - apt.git/commitdiff
Merge with Michael
authorChristian Perrier <bubulle@debian.org>
Tue, 1 Nov 2005 17:25:04 +0000 (17:25 +0000)
committerChristian Perrier <bubulle@debian.org>
Tue, 1 Nov 2005 17:25:04 +0000 (17:25 +0000)
Patches applied:

 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-82
   * merged with bubulle

 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-83
   * cmdline/apt-get.cc: fix bug in FindSrc() (debian #335213)

 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-84
   * added armeb to archtable

1  2 
cmdline/apt-get.cc

diff --combined cmdline/apt-get.cc
index 040f670b1f051aff0953fec6fb3be40571fafc4c,48b21a31f8eb8fd801ba70e118bca56891d04fd0..b2beb3c2be07e65710e059ce8488a220d72f7a09
@@@ -1200,7 -1200,7 +1200,7 @@@ pkgSrcRecords::Parser *FindSrc(const ch
        VerTag = string(TmpSrc.begin() + Slash + 1,TmpSrc.end());
        TmpSrc = string(TmpSrc.begin(),TmpSrc.begin() + Slash);
     } 
-    else  if(DefRel.empty() == false)
+    else  if(!Pkg.end() && DefRel.empty() == false)
     {
        // we have a default release, try to locate the pkg. we do it like
        // this because GetCandidateVer() will not "downgrade", that means
         for (pkgCache::VerFileIterator VF = Ver.FileList(); VF.end() == false;
              VF++)
         {
 +          // extra paranioa
 +          if(VF.File() == NULL)
 +             continue;
 +
            /* If this is the status file, and the current version is not the
               version in the status file (ie it is not installed, or somesuch)
               then it is not a candidate for installation, ever. This weeds