quilt-0.48: Use cp instead of mv for backing up patches.
authorKhem Raj <raj.khem@gmail.com>
Tue, 28 Sep 2010 22:09:45 +0000 (15:09 -0700)
committerKhem Raj <raj.khem@gmail.com>
Tue, 28 Sep 2010 22:09:45 +0000 (15:09 -0700)
* mv would not preserve symlinks but cp -a would.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/quilt/quilt-0.48/use-cp-for-patch-backup.patch [new file with mode: 0644]
recipes/quilt/quilt.inc

diff --git a/recipes/quilt/quilt-0.48/use-cp-for-patch-backup.patch b/recipes/quilt/quilt-0.48/use-cp-for-patch-backup.patch
new file mode 100644 (file)
index 0000000..efd7fd0
--- /dev/null
@@ -0,0 +1,22 @@
+--- quilt-0.48/quilt.quiltrc.org       2010-09-28 15:00:34.552922490 -0700
++++ quilt-0.48/quilt.quiltrc   2010-09-28 15:00:52.582375166 -0700
+@@ -24,7 +24,7 @@ QUILT_REFRESH_ARGS="--no-timestamps --ba
+ #QUILT_PATCHES=patches
+ # Prefix all patch names with the relative path to the patch?
+-QUILT_PATCHES_PREFIX=yes
++#QUILT_PATCHES_PREFIX=yes
+ # Use a specific editor for quilt (defaults to the value of $EDITOR before
+ # sourcing this configuration file, or vi if $EDITOR wasn't set).
+--- quilt-0.48/quilt/refresh.in.org    2010-09-28 14:58:31.844417642 -0700
++++ quilt-0.48/quilt/refresh.in        2010-09-28 14:59:19.944017265 -0700
+@@ -317,7 +317,7 @@ if [ -e $patch_file ] && \
+ then
+       printf $"Patch %s is unchanged\n" "$(print_patch $patch)"
+ elif ( [ -z "$QUILT_BACKUP" -o ! -e $patch_file ] || \
+-       mv $patch_file $patch_file~ ) && \
++       cp -a $patch_file $patch_file~ ) && \
+      cat_to_new_file $patch_file < $tmp_result
+ then
+       if [ -n "$opt_fork" ]
index f214f79..7fd9eac 100644 (file)
@@ -2,11 +2,12 @@ DESCRIPTION = "Tool to work with series of patches."
 HOMEPAGE = "http://savannah.nongnu.org/projects/quilt/"
 SECTION = "devel"
 LICENSE = "GPL"
-INC_PR = "r6"
+INC_PR = "r7"
 
 SRC_URI = "http://download.savannah.gnu.org/releases/quilt/quilt-${PV}.tar.gz \
            file://install.patch \
           file://no_rm_symlinks.patch \
+          file://use-cp-for-patch-backup.patch \
           "
 
 S = "${WORKDIR}/quilt-${PV}"