[haiku-bugs] Re: [Haiku] #15230: Unable to add / remove repositories

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 10 Aug 2019 03:30:57 -0000

#15230: Unable to add / remove repositories
--------------------------------+----------------------------
   Reporter:  kallisti5         |      Owner:  leavengood
       Type:  bug               |     Status:  closed
   Priority:  critical          |  Milestone:  R1/beta2
  Component:  Kits/Package Kit  |    Version:  R1/Development
 Resolution:  fixed             |   Keywords:  pkgman
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------

Comment (by leavengood):

 Also to explain a bit further, BPackageRoster::GetRepositoryCache has a
 bug because in a new Haiku install ~/config/cache does not exist, so this
 will always fail with B_NOT_FOUND until that directory is created.
 GetRepositoryConfig does not fail in this way because it is looking for
 ~/config/settings which always exists.

 Since RefreshRepositoryRequest is always called to update repos, it was
 always failing due to no ~/config/cache existing. So if that directory is
 created, updates will start working, but adding new repos still won't
 because of another bug.

 Ignoring this error skirts around both of those bugs. I have a fix for
 GetRepositoryCache but it is kind of ugly. The other bug is harder which
 is why I just added back the ignoring of the error.

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

Other related posts: