Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-10-08 Thread Stephen Burrows
I'm a little confused by the track the discussion took recently... my impression was that the solution would *not* be to change from last_modified to a checksum, or to add an additional checksum method. Instead, storage backeds could support a has_changed method, which could be overridden to

Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-10-08 Thread Jeremy Dunck
Would it be reasonable to have a backend-specific hook to determine a fingerprint, where that could be mtime or md5 or whathaveyou as long as equality (or maybe ordering) works? On Oct 8, 2012, at 10:23 AM, Alex Ogier wrote: > On Mon, Oct 8, 2012 at 1:06 PM, ptone

Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-10-08 Thread Alex Ogier
On Mon, Oct 8, 2012 at 1:06 PM, ptone wrote: > While git may be common, and your problem not unique - this is still a > condition of your dev environment rendering modification dates invalid. > There might be other situations where this is the case (I've run into > scripts

Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-10-08 Thread ptone
On Monday, October 8, 2012 8:49:58 AM UTC-7, Dan Loewenherz wrote: > > > > On Mon, Oct 1, 2012 at 12:47 AM, Jannis Leidel > > >> wrote: >> Then, frankly, this is a problem of the storage backends, not Django's. >> The S3BotoStorage backend *does* have a modified_time

Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-10-08 Thread Dan Loewenherz
> > On Mon, Oct 1, 2012 at 12:47 AM, Jannis Leidel wrote: > Then, frankly, this is a problem of the storage backends, not Django's. > The S3BotoStorage backend *does* have a modified_time method: > > >

Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-10-08 Thread Jannis Leidel
On 08.10.2012, at 07:38, ptone wrote: > so after scanning this thread and the ticket again - it is still unclear that > there could be a completely universal solution. > > While it would be nice if the storage API had a checksum(name) or md5(name) > method - not all custom

Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-10-08 Thread Jannis Leidel
On 06.10.2012, at 19:48, Dan Loewenherz wrote: > Hey Jannis, > > On Mon, Oct 1, 2012 at 12:47 AM, Jannis Leidel wrote: > > On 30.09.2012, at 23:41, Dan Loewenherz wrote: > > > Many backends don't support last modified times, and even if they all