[haiku-bugs] Re: [Haiku] #12414: [package kit] Package downloads not retried / resumeable

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 02 Feb 2020 03:19:09 -0000

#12414: [package kit] Package downloads not retried / resumeable
--------------------------------+----------------------------------------
   Reporter:  waddlesplash      |      Owner:  leavengood
       Type:  enhancement       |     Status:  assigned
   Priority:  normal            |  Milestone:  Unscheduled
  Component:  Kits/Package Kit  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:  11637, 12691, 13816, 14948
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------------------
Comment (by leavengood):

 I started looking over the code for this. I think downloads could be
 retried fairly easily in the `FetchFileJob::Execute` method, but
 "resuming" a previous broken update seems more difficult.

 There would need to be some way for the package kit to determine if a
 previous transaction directory represents an incomplete update, in which
 case it could try again using that directory. I also don't yet know if the
 entire directory is deleted when there is a download failure.

 I am thinking over the options, but I will need to do some testing and may
 need to experiment.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/12414#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: