[haiku-bugs] Re: [Haiku] #14840: HaikuDepot doesn't autorefresh repos on first Launch.

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Mon, 25 May 2020 06:06:59 -0000

#14840: HaikuDepot doesn't autorefresh repos on first Launch.
--------------------------------------+----------------------------
  Reporter:  kallisti5                |      Owner:  apl-haiku
      Type:  bug                      |     Status:  assigned
  Priority:  normal                   |  Milestone:  R1/beta2
 Component:  Applications/HaikuDepot  |    Version:  R1/Development
Resolution:                           |   Keywords:
Blocked By:                           |   Blocking:
  Platform:  All                      |
--------------------------------------+----------------------------
Changes (by apl-haiku):

 * owner:  stippi => apl-haiku
 * status:  new => assigned

Comment:

 I have had a look through this.  The logic is actually there to refresh
 from the remote repo, but it is only happening when there is no cache
 present.  When Haiku is installed it has a cache present from the build
 process so HaikuDepot does not download the repo data.  As it happens,
 easy to fix, but there are a few options as to how to best approach this.

 * Create a background task / script to run independently of HaikuDepot
 when Haiku first starts in order to update the repositories' data and
 don't make a change in HaikuDepot's logic at all.
 * Update the repositories' data on every start of HaikuDepot and every
 time that the user chooses "Refresh repositories"
 * Update the repositories' data only the first time that HaikuDepot runs
 and every time that the user chooses "Refresh repositories"
 * Update the repositories' data at most once a week as well as when
 HaikuDepot first runs as well as every time that the user chooses "Refresh
 repositories"

 Downloading the data each run of HaikuDepot is not always quick and adds
 to the overhead at start time.  Any thoughts from the audience?
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14840#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: