]> git.saurik.com Git - apt.git/commitdiff
- add a 'newest' pseudo target release as in pkg/newest
authorDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 26 Jul 2010 08:53:32 +0000 (10:53 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 26 Jul 2010 08:53:32 +0000 (10:53 +0200)
*

apt-pkg/cacheset.cc
debian/changelog

index df7e99fd07aed36c4cce114f201b190327a6678f..f17a9e0d51c552de848359dd5b9e9516f785b1c7 100644 (file)
@@ -323,7 +323,12 @@ APT::VersionSet VersionSet::FromString(pkgCacheFile &Cache, std::string pkg,
                        V = getInstalledVer(Cache, P, helper);
                else if (ver == "candidate")
                        V = getCandidateVer(Cache, P, helper);
-               else {
+               else if (ver == "newest") {
+                       if (P->VersionList != 0)
+                               V = P.VersionList();
+                       else
+                               V = helper.canNotFindNewestVer(Cache, P);
+               } else {
                        pkgVersionMatch Match(ver, (verIsRel == true ? pkgVersionMatch::Release :
                                        pkgVersionMatch::Version));
                        V = Match.Find(P);
index 1aa05adcb73ef2f7f6b7de419bbd3b7eb4a13ee7..a381034c1b19881a96d2cae8daee781d5a4b2ad0 100644 (file)
@@ -7,12 +7,14 @@ apt (0.7.26~exp11) experimental; urgency=low
     - be able to omit dependency types in (r)depends (Closes: #319006)
   * apt-pkg/cacheset.cc:
     - move them back to the library as they look stable now
+    - add a 'newest' pseudo target release as in pkg/newest
   * apt-pkg/pkgcache.cc:
     - prefer non-virtual packages in FindPreferredPkg (Closes: #590041)
   * test/integration/*:
     - add with bug#590041 testcase a small test "framework"
+  * 
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Sun, 25 Jul 2010 19:37:45 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 26 Jul 2010 10:52:14 +0200
 
 apt (0.7.26~exp10) experimental; urgency=low