From 6f1a5a0e1639924c1b60c6525496d6820212fc2b Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Sun, 30 Dec 2018 16:00:15 +1100 Subject: [PATCH] fetch_trees: explicitly stop wget from storing the URL in an xattr rather than removing the xattr later. The --no-xattr option is not documented in the man page, but is in "wget --help". This has become the default behaviour in wget v1.20.1 anyway. --- fetch_trees | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fetch_trees b/fetch_trees index e8c91f7..3a43025 100755 --- a/fetch_trees +++ b/fetch_trees @@ -75,7 +75,7 @@ fetch_quilt() printf 'Cannot chdir to quilt directory for %s\n' "$1" 1>&2 return fi - if ! wget -N -nv --no-cache "$url/series"; then + if ! wget -N -nv --no-cache --no-xattr "$url/series"; then printf 'Wget of %s series file failed\n' "$1" 1>&2 cd .. rm -rf "$1" @@ -91,7 +91,7 @@ fetch_quilt() sed -e 's/[ \t]*#.*$//' -e '/^[ \t]*$/d' | sort >.series.next if [ -s .series.next ]; then - if ! wget -N -nv --no-cache -B "$url/" -i .series.next; then + if ! wget -N -nv --no-cache --no-xattr -B "$url/" -i .series.next; then printf 'Wget of series %s failed\n' "$1" 1>&2 cd .. rm -rf "$1" @@ -101,7 +101,6 @@ fetch_quilt() fi comm -23 .series.old .series.next | xargs -r rm -f rm -f .series.old .series.next - setfattr -x user.xdg.origin.url ./* >/dev/null 2>&1 ) } -- 2.39.5