From a4ea144611f8c30d71805d3f6279f5827e5dda3f Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Thu, 8 Dec 2011 14:59:11 +0200 Subject: [PATCH] Changed util::patch to make backups of original files --- util/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/manifests/init.pp b/util/manifests/init.pp index 2b90342..aaf5e90 100644 --- a/util/manifests/init.pp +++ b/util/manifests/init.pp @@ -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}", } }