[wp-meta] [Making WordPress.org] #619: Add Content-MD5 headers to downloads

Making WordPress.org noreply at wordpress.org
Sat Jan 30 08:04:13 UTC 2016


#619: Add Content-MD5 headers to downloads
--------------------------+---------------------
  Reporter:  nacin        |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Component:  General
Resolution:               |   Keywords:
--------------------------+---------------------

Comment (by dd32):

 To summarize, when creating a zip file on-the-fly, there's several things
 you need to do
 1. `svn export` will set files to their last-commit-date, but directories
 to `NOW()`. Update directories timestamps to a known date (I chose the
 timestamp of the last commit to that theme/plugin).
 2. When copying files between directories, use `--preserve=timestamps` to
 preserve the timestamps rather than having them set to `NOW()`.
 3. Using `zip` specify the `-X` parameter to strip filesystem-specific
 things such as user/group's and access time from the zip, as these are not
 needed and may vary.
 4. When creating the zip file, `zip` will add the files in the order it
 finds them on disk, however even if you specify a file order via STDIN,
 it'll add them in a seemingly random (and system dependant) order. Files
 need to be sorted and added individually to ensure that it's consistent.

 The theme zip files appear to be being generated consistently now, plugin
 zip generation needs !#4 applied to it still.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/619#comment:17>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list