resource-get should not download if not necessary

Bug #1598113 reported by Eric Snow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Eric Snow

Bug Description

Currently the "resource-get" hook command will *always* download the resource, even if the file in the local cache is the same as the one that will be downloaded. This is a particularly painful problem with large resources.

see: https://github.com/juju/juju/blob/master/resource/context/internal/resourcedir.go#L49

Tags: resources
Changed in juju-core:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Eric Snow (ericsnowcurrently)
Revision history for this message
Eric Snow (ericsnowcurrently) wrote :
Ian Booth (wallyworld)
Changed in juju-core:
milestone: none → 2.0-beta12
Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta12 → none
milestone: none → 2.0-beta12
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.