On So, 04 Okt 2009, Raphael Hertzog wrote:
> Well, at least it makes it work even when you're in a sub-directory
> of the source package.

Then what about making sure that it does not search above the directory
that contains "debian"?


--- patchfns.orig       2009-10-05 10:04:06.000000000 +0900
+++ patchfns    2009-10-05 10:10:00.000000000 +0900
@@ -991,6 +991,11 @@
     basedir=$PWD
     while [ -n "$basedir" ]
     do
+       if [ -d "$basedir/debian" ]
+       then
+           echo "Found debian dir, do not go above that for searching patches" 
>&2
+           exit 1
+       fi
        basedir=${basedir%/*}
        down=$down../
        if [ -d "$basedir/$QUILT_PATCHES" ]

With this patch it still works in sub dirs within a debian package, but
does not go arbitrarily high up in the hierarchy.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining                                        Associate Professor
JAIST Japan Advanced Institute of Science and Technology   prein...@jaist.ac.jp
Vienna University of Technology                               prein...@logic.at
Debian Developer (Debian TeX Task Force)                    prein...@debian.org
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
BRUMBY
The fake antique plastic seal on a pretentious whisky bottle.
                        --- Douglas Adams, The Meaning of Liff



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to