]> err.no Git - dpkg/commitdiff
dpkg (1.2.11); priority=MEDIUM
authorIan Jackson <ian@chiark.chu.cam.ac.uk>
Mon, 1 Jul 1996 01:51:11 +0000 (02:51 +0100)
committerIan Jackson <ian@chiark.chu.cam.ac.uk>
Mon, 1 Jul 1996 01:51:11 +0000 (02:51 +0100)
  * dselect had dependency bug if installed package newer than avail.
  * Added `replaces' to dselect's list of package relationship strings.

 -- Ian Jackson <ian@chiark.chu.cam.ac.uk>  Mon, 1 Jul 1996 02:51:11 +0100

debian.Changelog
debian.rules
dselect/pkgdepcon.cc
dselect/pkgdisplay.cc
version.h

index 0288642145455a776c7ba439b83cd8bed35bd771..72e68c2212a080b0fb26e90bb69a819347b7fcc3 100644 (file)
@@ -1,3 +1,10 @@
+dpkg (1.2.11); priority=MEDIUM
+
+  * dselect had dependency bug if installed package newer than avail.
+  * Added `replaces' to dselect's list of package relationship strings.
+
+ -- Ian Jackson <ian@chiark.chu.cam.ac.uk>  Mon, 1 Jul 1996 02:51:11 +0100
+
 dpkg (1.2.10); priority=MEDIUM
 
   * Fixed bug in old-style version/revision number parsing.  (Bug#3440.)
index c2b8c967846ae81e15e17a55a00b08116c060bbe..98344d8960279e9c03a05aa112dde353cd0c3116 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 package=dpkg
-version=1.2.10
+version=1.2.11
 
 archi=$(shell dpkg --print-architecture)
 DIR:=$(shell pwd)
index bfe48c985c98a01ca9a925ad58939119fb005a45..a6abb3094c0529cd2f3b1530777fd184245b8620 100644 (file)
@@ -39,7 +39,7 @@ int packagelist::useavailable(pkginfo *pkg) {
       pkg->clientdata->selected == pkginfo::want_install &&
       informative(pkg,&pkg->available) &&
       (pkg->status != pkginfo::stat_installed ||
-       versioncompare(&pkg->available.version,&pkg->installed.version) > 1))
+       versioncompare(&pkg->available.version,&pkg->installed.version) > 0))
     return 1;
   else
     return 0;
@@ -48,6 +48,8 @@ int packagelist::useavailable(pkginfo *pkg) {
 pkginfoperfile *packagelist::findinfo(pkginfo *pkg) {
   pkginfoperfile *r;
   r= useavailable(pkg) ? &pkg->available : &pkg->installed;
+  if (debug)
+    fprintf(debug,"packagelist[%p]::findinfo(%s) useavailable=%d\n",this,pkg->name,useavailable(pkg));
   if (!r->valid) blankpackageperfile(r);
   return r;
 }
@@ -350,17 +352,17 @@ int packagelist::deppossatisfied(deppossi *possi, perpackagestate **fixbyupgrade
     // the right version, and therefore OK, or a version must have
     // been specified, in which case we don't need to look at the rest
     // anyway.
-    if (want == pkginfo::want_hold) {
+    if (useavailable(possi->ed)) {
+      assert(want == pkginfo::want_install);
+      return versionsatisfied(&possi->ed->available,possi);
+    } else {
       if (versionsatisfied(&possi->ed->installed,possi)) return 1;
-      if (fixbyupgrade && !*fixbyupgrade &&
+      if (want == pkginfo::want_hold && fixbyupgrade && !*fixbyupgrade &&
           versionsatisfied(&possi->ed->available,possi) &&
           versioncompare(&possi->ed->available.version,
                          &possi->ed->installed.version) > 1)
         *fixbyupgrade= possi->ed->clientdata;
       return 0;
-    } else {
-      assert(want == pkginfo::want_install);
-      return versionsatisfied(&possi->ed->available,possi);
     }
   }
   if (possi->verrel != deppossi::dvr_none) return 0;
index 89d0ee533350743aaa3acdb379d681fb8f0cd835..92c31a868abf89fc4279e73e546c7d0f46c93a27 100644 (file)
@@ -39,12 +39,12 @@ const char
   *const eflagstrings[]=   { "", "REINSTALL", 0 },
   *const statusstrings[]= { "not installed", "unpacked (not set up)",
                             "failed config", "installed", "half installed",
-                            "removed (configs remain)", 0                            },
+                            "removed (configs remain)", 0                             },
   *const prioritystrings[]=  { "Required", "Important", "Standard", "Recommended",
                                "Optional", "Extra", "Contrib",
-                               "!Bug!", "Unclassified", 0                          },
+                               "!Bug!", "Unclassified", 0                             },
   *const relatestrings[]= { "suggests", "recommends", "depends on", "pre-depends on",
-                            "conflicts with", "provides", 0              },
+                            "conflicts with", "provides", "replaces", 0               },
   *const priorityabbrevs[]=  { "Req", "Imp", "Std", "Rec",
                                "Opt", "Xtr", "Ctb",
                                "bUG", "?"                  };
index 0c01a69b8f9149ed8953126181277ab4593f721f..c6c0a55526968bf40c52917b4bf1aa56fd87e1ea 100644 (file)
--- a/version.h
+++ b/version.h
@@ -1 +1 @@
-#define DPKG_VERSION "1.2.9" /* This line modified by Makefile */
+#define DPKG_VERSION "1.2.11" /* This line modified by Makefile */