Changed util::patch to make backups of original files

This commit is contained in:
Ossi Salmi 2011-12-08 14:59:11 +02:00 committed by Timo Mkinen
parent 431034bf47
commit a4ea144611

View file

@ -137,8 +137,8 @@ define util::patch($source, $strip=0) {
exec { "patch-${name}-${source}":
path => "/bin:/usr/bin:/sbin:/usr/sbin",
cwd => "${name}",
command => "patch -N -t -p${strip} < ${source}",
onlyif => "patch --dry-run -N -t -p${strip} < ${source}",
command => "patch -N -b -t -p${strip} < ${source}",
onlyif => "patch --dry-run -N -b -t -p${strip} < ${source}",
}
}