[haiku-bugs] Re: [Haiku] #14821: In stand-alone window, add "Uninstall" button when applicable

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 07 Aug 2019 04:42:08 -0000

#14821: In stand-alone window, add "Uninstall" button when applicable
---------------------------------------+----------------------------
   Reporter:  humdinger                |      Owner:  stippi
       Type:  bug                      |     Status:  new
   Priority:  normal                   |  Milestone:  Unscheduled
  Component:  Applications/HaikuDepot  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  0                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by leavengood):

 I started digging into this, and it seems when loading a package file in
 this way, the "state" of the PackageInfo in HaikuDepot is never
 initialized, and when that is the case the install button is shown.

 HaikuDepot and the Package Kit is new to me but it does not seem obvious
 how to determine if a package is installed. The BPackageInfo from the
 package kit doesn't seem to contain that information. I imagine the code
 has to query something else to determine the state of the package but my
 Linux machine locked up before I could dig much further, and it is getting
 late for me.

 I may dig into this more later this week.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14821#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: