]> git.saurik.com Git - apt.git/commitdiff
* [ABI BREAK] apt-pkg/pkgcache.h:
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 8 Jan 2013 15:44:38 +0000 (16:44 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 8 Jan 2013 15:44:38 +0000 (16:44 +0100)
  - adjust pkgCache::State::VerPriority enum, to match reality

apt-pkg/algorithms.cc
apt-pkg/init.h
apt-pkg/pkgcache.cc
apt-pkg/pkgcache.h
debian/changelog

index 75e914f7dda6e41a7a53478b7aa126089aedd1d8..b2a40add1318550bfb89387c44822d177ad245df 100644 (file)
@@ -550,11 +550,12 @@ void pkgProblemResolver::MakeScores()
    unsigned long Size = Cache.Head().PackageCount;
    memset(Scores,0,sizeof(*Scores)*Size);
 
-   // Important Required Standard Optional Extra
+   // maps to pkgCache::State::VerPriority: 
+   //    Required Important Standard Optional Extra
    int PrioMap[] = {
       0,
-      _config->FindI("pkgProblemResolver::Scores::Important",2),
       _config->FindI("pkgProblemResolver::Scores::Required",3),
+      _config->FindI("pkgProblemResolver::Scores::Important",2),
       _config->FindI("pkgProblemResolver::Scores::Standard",1),
       _config->FindI("pkgProblemResolver::Scores::Optional",-1),
       _config->FindI("pkgProblemResolver::Scores::Extra",-2)
index b6f3df7537b65eb52635b583631c02fcdb5bffce..00d3615606799023dfa36ded38aed86ce022da98 100644 (file)
@@ -27,7 +27,7 @@ class Configuration;
 // Non-ABI-Breaks should only increase RELEASE number.
 // See also buildlib/libversion.mak
 #define APT_PKG_MAJOR 4
-#define APT_PKG_MINOR 12
+#define APT_PKG_MINOR 13
 #define APT_PKG_RELEASE 0
     
 extern const char *pkgVersion;
index 1de33ff9b52e54e782cc1198e640939aeae2be12..8151475efbc54150afc74141e45fbfcbce6d1307 100644 (file)
@@ -51,7 +51,7 @@ pkgCache::Header::Header()
    
    /* Whenever the structures change the major version should be bumped,
       whenever the generator changes the minor version should be bumped. */
-   MajorVersion = 8;
+   MajorVersion = 9;
    MinorVersion = 0;
    Dirty = false;
    
index 1a7013551a5c9c57ae7a7733277e076042ba017e..565ee657c98ea5cc6f74baac9237e8355f950297 100644 (file)
@@ -136,7 +136,7 @@ class pkgCache                                                              /*{{{*/
       /** \brief priority of a package version
 
           Zero is used for unparsable or absent Priority fields. */
-      enum VerPriority {Important=1,Required=2,Standard=3,Optional=4,Extra=5};
+      enum VerPriority {Required=1,Important=2,Standard=3,Optional=4,Extra=5};
       enum PkgSelectedState {Unknown=0,Install=1,Hold=2,DeInstall=3,Purge=4};
       enum PkgInstState {Ok=0,ReInstReq=1,HoldInst=2,HoldReInstReq=3};
       enum PkgCurrentState {NotInstalled=0,UnPacked=1,HalfConfigured=2,
index dcc6e4d169ad4e90153ab624133f603b92a2c7de..3429648692668f476d5b9f04ff22ae53677bc0a4 100644 (file)
@@ -6,6 +6,8 @@ apt (0.9.7.8) UNRELEASED; urgency=low
   [ Michael Vogt ]
   * fix pkgProblemResolver::Scores, thanks to Paul Wise. 
     Closes: #697577
+  * [ABI BREAK] apt-pkg/pkgcache.h:
+    - adjust pkgCache::State::VerPriority enum, to match reality
 
  -- Christian Perrier <bubulle@debian.org>  Mon, 24 Dec 2012 07:01:20 +0100