From 2f7e4720494947705f2bc1d87075047898bb7c26 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Wed, 1 Feb 2006 15:12:10 +0000 Subject: - Add "testcase" for -p0 patches that are applied in different directories. We occasionally have this condition in spec files, and it would be really great if quilt setup could cope better. --- compat/.cvsignore | 1 + test/basedir.no-test | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 test/basedir.no-test diff --git a/compat/.cvsignore b/compat/.cvsignore index 5d553e5..0b52907 100644 --- a/compat/.cvsignore +++ b/compat/.cvsignore @@ -5,3 +5,4 @@ diffstat getopt mktemp sendmail +date diff --git a/test/basedir.no-test b/test/basedir.no-test new file mode 100644 index 0000000..26506a5 --- /dev/null +++ b/test/basedir.no-test @@ -0,0 +1,29 @@ + $ rm -rf d + $ mkdir -p d/patches + $ cd d + + $ echo foo.orig > foo.orig + $ echo foo > foo + $ diff -u foo.orig foo > patches/foo.diff + $ mv foo.orig foo + + $ mkdir subdir + $ cd subdir + $ echo bar.orig > bar.orig + $ echo bar > bar + $ diff -u bar.orig bar > ../patches/bar.diff + $ mv bar.orig bar + $ cd .. + + #$ export QUILT_PATCHES=$PWD/patches + $ cat > patches/series + < foo.diff -p0 + < bar.diff -p0 -d subdir + + $ quilt push -qa + > Applying patch patches/foo.diff + > Applying patch patches/bar.diff + > Now at patch patches/bar.diff + + $ cd .. + $ rm -rf d -- cgit