]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-get.cc
[cmdline/apt-get.cc]
[apt.git] / cmdline / apt-get.cc
index 34ffaf11a6b151a99b5d84d388ea8036aa6df9e0..71566fd55f0a55f0407f834d3506d8e05b1a8d93 100644 (file)
@@ -1255,7 +1255,10 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs,
            //std::cout << VF.File().Archive() << std::endl;
            if(VF.File().Archive() && (VF.File().Archive() == DefRel)) 
            {
-              VerTag = Ver.VerStr();
+              pkgRecords::Parser &Parse = Recs.Lookup(VF);
+              VerTag = Parse.SourceVer();
+              if (VerTag.empty())
+                 VerTag = Ver.VerStr();
               break;
            }
         }