Changes between Initial Version and Version 1 of Ticket #15230, comment 7


Ignore:
Timestamp:
Aug 10, 2019, 3:37:01 AM (5 years ago)
Author:
leavengood

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15230, comment 7

    initial v1  
    1 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.
     1Also to explain a bit further, BPackageRoster::GetRepositoryCache has a bug because in a new Haiku install ~/config/cache/package-repositories does not exist, so this will always fail with B_NOT_FOUND until that directory is created.
    22
    3 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.
     3Since RefreshRepositoryRequest is always called to update repos, it was always failing due to no ~/config/cache/package-repositories existing. So if that directory is created, and the files in /system/cache/package-repositories are copied there, updates will start working, but adding new repos still won't because of another bug.
    44
    55Ignoring 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.