quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] quilt new overrides SUBDIR


From: Joe Green
Subject: [Quilt-dev] quilt new overrides SUBDIR
Date: Sun, 11 Jul 2004 14:43:38 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

I noticed that if you're not in the top directory of a quilt tree, quilt "new" will override the SUBDIR and create a new patch directory in the current directory. I don't know what the reason for this is. Everything seems to work find when I remove the override with the attached patch.

--
Joe Green <address@hidden>
MontaVista Software, Inc.
For some reason, "quilt new" overrides a discovered SUBDIR, and creates
a new patches directory in the current directory.  This patch causes the
subdirectory to be honored, and the top-level patches directory to be used.

Joe Green <address@hidden>

Index: quilt-0.34/quilt/new.in
===================================================================
--- quilt-0.34.orig/quilt/new.in
+++ quilt-0.34/quilt/new.in
@@ -59,14 +59,6 @@ fi
 
 patch=${1#$QUILT_PATCHES/}
 
-if [ -n "$SUBDIR" ]
-then
-       printf $"Warning: directory %s exists; ignoring\n" \
-              "$(echo $SUBDIR | sed -e 's:[^/]\+:..:g')$QUILT_PATCHES" >&2
-       cd $SUBDIR
-       unset SUBDIR
-fi
-
 if patch_in_series $patch
 then
        printf $"Patch %s exists already\n" "$(print_patch $patch)" >&2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]