Merge pull request #48325 from transumption/201810/warn-on-fetchurl-rev-archives
fetchurl: warn on rev archives, resolves #32999
This commit is contained in:
commit
b26153450c
@ -118,7 +118,6 @@ if test -n "$showURLs"; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test -n "$preferHashedMirrors"; then
|
if test -n "$preferHashedMirrors"; then
|
||||||
tryHashedMirrors
|
tryHashedMirrors
|
||||||
fi
|
fi
|
||||||
@ -128,6 +127,16 @@ set -o noglob
|
|||||||
|
|
||||||
success=
|
success=
|
||||||
for url in $urls; do
|
for url in $urls; do
|
||||||
|
if [ -z "$postFetch" ]; then
|
||||||
|
case "$url" in
|
||||||
|
https://github.com/*/archive/*)
|
||||||
|
echo "warning: archives from GitHub revisions should use fetchFromGitHub"
|
||||||
|
;;
|
||||||
|
https://gitlab.com/*/-/archive/*)
|
||||||
|
echo "warning: archives from GitLab revisions should use fetchFromGitLab"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
tryDownload "$url"
|
tryDownload "$url"
|
||||||
if test -n "$success"; then finish; fi
|
if test -n "$success"; then finish; fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user