quilt-dev
[Top][All Lists]
Advanced

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

[Quilt-dev] [PATCH] handle quilt import -f -p* and update series


From: Brandon Philips
Subject: [Quilt-dev] [PATCH] handle quilt import -f -p* and update series
Date: Tue, 30 Jan 2007 03:45:11 -0000
User-agent: Mutt/1.5.13 (2006-08-11)

Handle the case where the patch that is being replaced with quilt import -f has
a different strip level than the one in the series.

We don't want this happening:

 $ quilt import ratings-menu-4762.patch
 new patch comes with -p0 patch level
 $ quilt import -f -p0 ratings-menu-4762.patch
 $ cat series
 ratings-menu-4762.patch

Signed-off-by: Brandon Philips <address@hidden>

---
 quilt/import.in |    3 +++
 1 file changed, 3 insertions(+)

Index: quilt/quilt/import.in
===================================================================
--- quilt.orig/quilt/import.in
+++ quilt/quilt/import.in
@@ -178,6 +178,9 @@ do
                fi
                printf $"Replacing patch %s with new version\n" \
                       "$(print_patch $patch)" >&2
+
+               [ "$opt_strip" != $(patch_strip_level $patch_file) ] \
+                       && change_db_strip_level "$patch_args" "$patch_file"
        elif [ -e "$dest" ]
        then
                printf $"Importing patch %s\n" "$(print_patch $patch)"




reply via email to

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