Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#667 closed enhancement (fixed)

<patch> element support for download and uncompression

Reported by: kpfleming@… Owned by: kpfleming@…
Priority: lowest Milestone:
Component: nALFS - Back End (XML Handlers) Version: SVN
Severity: minor Keywords:
Cc:

Description

<patch> element should be extended to support the following:

<patch>

<file>path-to-patch-file</file> <digest>md5-or-other-sum-of-file</digest> <reference>URL-to-get-patch-file</reference>

</patch>

The element will then download the file if necessary, checks its digest, and issue the patch command as follows:

patch -N -p1 path-to-patch-file

in the current or specified <base>, of course. If the file is compressed, it will be decompressed as it is passed to the patch command (just as the <unpack> element does). Should support a <mode> attribute, of "forward" (the default) or "reverse", and also a <strip> attribute (default of 1). Any other patch options can be specified by using <param> attributes, which will be appended to the constructed command line.

Issues:

  • should this be syntax version 3.2?
  • should this be a new element name, or is changing the existing element acceptable?

Change History (3)

comment:1 by kpfleming@…, 21 years ago

dependson: 671

comment:2 by kpfleming@…, 21 years ago

Resolution: fixed
Status: newclosed

changes committed to CVS HEAD, DTD updated to version 3.2 to support new syntax

comment:3 by jwrober@…, 20 years ago

Version: CVSSVN
Note: See TracTickets for help on using tickets.