]> git.ozlabs.org Git - next-scripts/commitdiff
fetch_trees: explicitly stop wget from storing the URL in an xattr
authorStephen Rothwell <sfr@canb.auug.org.au>
Sun, 30 Dec 2018 05:00:15 +0000 (16:00 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 30 Dec 2018 05:00:15 +0000 (16:00 +1100)
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

index e8c91f7a2b6ee621beee83f2d7194ac787af42be..3a43025550e5554ebd9fab941058824d0eac4091 100755 (executable)
@@ -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
        )
 }