Bug 199049 - ports-mgmt/pkg: [wishlist]: 'pkg fetch' should re-fetch files part from where it previously left off
Summary: ports-mgmt/pkg: [wishlist]: 'pkg fetch' should re-fetch files part from where...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-30 21:04 UTC by Walter von Entferndt
Modified: 2015-12-17 19:07 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter von Entferndt 2015-03-30 21:04:00 UTC
When a 'pkg fetch' or 'pkg update' fails or gets interrupted, e.g. because of an unstable network link, it fetches partly downloaded files completely on the next run.  It would be desirable to skip to the file's position where it previously left off and fetch only the missing parts.
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2015-04-06 12:00:11 UTC
This has been implemented in pkg 1.5 should be released soon
Comment 2 Walter von Entferndt 2015-04-22 15:29:40 UTC
I now have pkg-1.5.1 and it still fetches partly downlowded files from the start (completely) again iff the previous fetch failed.
Comment 3 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2015-12-17 18:59:53 UTC
I would suggest submitting this upstream (https://github.com/freebsd/pkg/issues) with more details.
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2015-12-17 19:01:49 UTC
It has been mplemented in the meantime
Comment 5 Baptiste Daroussin freebsd_committer freebsd_triage 2015-12-17 19:07:38 UTC
ok I figured I should have added comments here:

the one that are refetched from start are the one that has been probably rebuilt so the name of the package is the same, but the package (file) is different (as we do not have reproducible builds yet)