diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-08-26 10:00:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-08-26 10:00:44 +0000 |
commit | 5e0bfe298c4ff28f1babb78659d125fd1fff8149 (patch) | |
tree | 0935983a0bb43202ae29cc287922d74568b5f810 /main/alpine-conf/0001-lbu-use-no-dereference-with-diff-when-possible.patch | |
parent | 32046814658dd9eb18595709ea6afa34fad594c7 (diff) | |
download | aports-5e0bfe298c4ff28f1babb78659d125fd1fff8149.tar.bz2 aports-5e0bfe298c4ff28f1babb78659d125fd1fff8149.tar.xz |
main/alpine-conf: fix symlink handling with lbu diff
ref #2847
Diffstat (limited to 'main/alpine-conf/0001-lbu-use-no-dereference-with-diff-when-possible.patch')
-rw-r--r-- | main/alpine-conf/0001-lbu-use-no-dereference-with-diff-when-possible.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/alpine-conf/0001-lbu-use-no-dereference-with-diff-when-possible.patch b/main/alpine-conf/0001-lbu-use-no-dereference-with-diff-when-possible.patch new file mode 100644 index 0000000000..8eb70c1345 --- /dev/null +++ b/main/alpine-conf/0001-lbu-use-no-dereference-with-diff-when-possible.patch @@ -0,0 +1,36 @@ +From 5368f0a59549b7b26154b2326abfd1f260f1750d Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Tue, 26 Aug 2014 11:57:53 +0200 +Subject: [PATCH] lbu: use --no-dereference with diff when possible + +--- + lbu.in | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/lbu.in b/lbu.in +index 52172c7..67ec631 100644 +--- a/lbu.in ++++ b/lbu.in +@@ -672,6 +672,7 @@ usage: $PROGRAM diff [<media>] + } + + cmd_diff() { ++ local diff_opts= + LBU_MEDIA=${1:-"$LBU_MEDIA"} + [ -z "$LBU_MEDIA" ] && [ -z "$LBU_BACKUPDIR" ] && usage_diff + local tmp +@@ -680,7 +681,10 @@ cmd_diff() { + unpack_apkovl "$tmp/a" + ENCRYPTION= + cmd_package - | tar -C "$tmp/b" -zx +- cd "$tmp" && diff -ruN a b ++ if diff --help 2>&1 | grep -q -- --no-dereference; then ++ diff_opts="--no-dereference" ++ fi ++ cd "$tmp" && diff -ruN $diff_opts a b + } + + # migrate +-- +2.1.0 + |