[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#202997: dpkg: Installing and disappearing a package in one go.



On Fri, Jul 25, 2003 at 12:36:49PM +0200, Daniel Kobras wrote:
> The following patch (against dpkg 1.10.10) should fix this.

Even better, this version doesn't change the semantics of dpkg
--configure this-pkg-is-not-installed. As far as I can tell,
disappearance is the only way a pkg can end up with stat_notinstalled in
act_install, but given dpkg's complexity I'd rather not bet my life on
it.

Regards,

Daniel.

---[snip]---

--- main/packages.c.orig	2003-07-25 12:10:33.000000000 +0200
+++ main/packages.c	2003-07-28 19:51:52.000000000 +0200
@@ -191,8 +191,11 @@
       assert(dependtry <= 4);
     }
     switch (cipaction->arg) {
-    case act_configure:
     case act_install:
+      /* Don't try to configure pkgs that we've just disappeared. */
+      if (pkg->status == stat_notinstalled)
+        break;
+    case act_configure:
       deferred_configure(pkg);
       break;
     case act_remove: case act_purge:



Reply to: