[MacPorts] #46927: record successfully applied patches in the statefile
#46927: record successfully applied patches in the statefile -------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: Keywords: haspatch | Port: -------------------------+-------------------------------- This patch records successfully applied patches in the state file, so that they can be skipped when repeating the patch phase. The feature is mostly geared towards port developers working on a new version of a port. When multiple patch files require changes it can be gain of time when one can refrain from having to do port clean repeatedly. My suggestion on macports-dev to implement something like this didn't elicit any reaction so I whipped up something myself. The base implementation was simple enough; it would be nice if a patch were reverse-applied at once upon failure though. -- Ticket URL: <https://trac.macports.org/ticket/46927> MacPorts <https://www.macports.org/> Ports system for OS X
#46927: record successfully applied patches in the statefile --------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: Resolution: | Keywords: haspatch Port: | --------------------------+-------------------------------- Comment (by ryandesign@…): Has duplicate #48361. -- Ticket URL: <https://trac.macports.org/ticket/46927#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#46927: record successfully applied patches in the statefile --------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: Resolution: | Keywords: haspatch Port: | --------------------------+-------------------------------- Comment (by rjvbertin@…): Now why didn't I find this ticket when I looked for it... Anyway, how would one best improve this to remove the need to revert a failed patch manually? The `patch` command has a `--dry-run` option which allows to test a patch without actually applying it. I guess it'd make sense to do such a dry run initially by prepending the option to the `pre_args`, but I've failed to achieve that until now :-/ -- Ticket URL: <https://trac.macports.org/ticket/46927#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts