Changed util::patch to make backups of original files
This commit is contained in:
parent
431034bf47
commit
a4ea144611
1 changed files with 2 additions and 2 deletions
|
@ -137,8 +137,8 @@ define util::patch($source, $strip=0) {
|
||||||
exec { "patch-${name}-${source}":
|
exec { "patch-${name}-${source}":
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
cwd => "${name}",
|
cwd => "${name}",
|
||||||
command => "patch -N -t -p${strip} < ${source}",
|
command => "patch -N -b -t -p${strip} < ${source}",
|
||||||
onlyif => "patch --dry-run -N -t -p${strip} < ${source}",
|
onlyif => "patch --dry-run -N -b -t -p${strip} < ${source}",
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue