[haiku-bugs] Re: [Haiku] #10278: Various quirks related to upgrading Haiku via pkgman

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Thu, 01 May 2014 18:54:51 -0000

#10278: Various quirks related to upgrading Haiku via pkgman
--------------------------------------+----------------------------
   Reporter:  waddlesplash            |      Owner:  bonefish
       Type:  bug                     |     Status:  new
   Priority:  normal                  |  Milestone:  R1
  Component:  Servers/package_daemon  |    Version:  R1/Development
 Resolution:                          |   Keywords:
 Blocked By:                          |   Blocking:
Has a Patch:  0                       |   Platform:  All
--------------------------------------+----------------------------

Comment (by bonefish):

 hrev47189 introduces some basic support for online updates. The package
 daemon does now track two different packages states: one that reflects the
 currently active packages (i.e. the ones packagefs shows) and the latest
 state of the packages directory. Only the latter can be changed by PM
 operations. In fact ATM HaikuDepot and pkgman are only aware of the
 latter.

 Usually both states are identical and changes to the latter will also
 immediately be reflected by the former (e.g. when a new package is
 installed). However, when a system package ("haiku[_<arch>]") is affected,
 the states will diverge. The active state will remain unchanged, while
 changes are applied to the latest state only.

 There still are some open issues -- like making the package managers aware
 of the two states, and executing post-install scripts properly -- but in
 principle `pkgman update` (respectively `pkgman full-sync`) should now
 update the system just fine.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10278#comment:13>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: