summaryrefslogtreecommitdiff
path: root/drain
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-05-23 19:30:41 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-05-23 19:30:41 -0400
commita5b324d9c2bb05b86f25466b2e2b1d35e29682f9 (patch)
tree56baa1ab082e1d2737fae606f39d75bd6da08f64 /drain
parentbf13e65d3965fdbfe23afc7a911997bb6bb67245 (diff)
drain: Don't try to extract file flags
bsdtar's --fflags is implied by -p, but this doesn't work on btrfs. I should look in to also adding --no-acls and --no-xattrs, which I believe would bring it in to accord with libalpm. The only way to set certain libarchive flags in bsdtar is to say -p, and then turn off the ones you don't want; it makes it hard to reason about setting the flags the same as libalpm does. Anyway, this gets it working on btrfs.
Diffstat (limited to 'drain')
-rwxr-xr-xdrain2
1 files changed, 1 insertions, 1 deletions
diff --git a/drain b/drain
index 8f97d2d..2c5346c 100755
--- a/drain
+++ b/drain
@@ -66,7 +66,7 @@ commit() (
read file dirs_str <<<"$filespec"
read -a dirs <<<"$dirs_str"
printf " -> %s\n" "$file"
- bsdtar xpvf "$file" "${dirs[@]#/}"
+ bsdtar -xpvf "$file" --no-fflags "${dirs[@]#/}"
done
ln -srT ../etc.git etc/.git