diff options
Diffstat (limited to 'debianbuild/patches/00patch-opts')
-rw-r--r-- | debianbuild/patches/00patch-opts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debianbuild/patches/00patch-opts b/debianbuild/patches/00patch-opts new file mode 100644 index 00000000000..d49694774c8 --- /dev/null +++ b/debianbuild/patches/00patch-opts @@ -0,0 +1,21 @@ +# -*- shell-script -*- #vim:syntax=sh +# By default dpatch works with -p1 (patch level 1) which works +# fine with one working directory, e.g. ACE_wrappers. While +# two working directories exist the default -p1 makes thinks +# complicate. Instaed of recreate patches we overwrite the +# dpatch_patch and dpatch_unpatch functions with -p0. +# See /usr/share/dpatch/dpatch.lib.sh for more implementation +# details on this issue. +# -- Raphael Bossek <bossekr@debian.org> + +DPATCH_LIB_NO_DEFAULT="no" + +dpatch_patch () +{ + patch -p0 $* +} + +dpatch_unpatch () +{ + patch -p0 -R $* +} |