Skip to content

Commit f88ff24

Browse files
committed
update_chroot: Change wget User-Agent string to not include a URL
Including a URL apparently makes you more likely to be blocked, as this is typically done by bots. Gentoo has made the same change. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
1 parent d7e5465 commit f88ff24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎update_chroot‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ PORT_LOGDIR="/var/log/portage"
9292
PORTAGE_BINHOST="$PORTAGE_BINHOST"
9393
PORTAGE_USERNAME="${PORTAGE_USERNAME}"
9494
MAKEOPTS="--jobs=${NUM_JOBS} --load-average=$((NUM_JOBS * 2))"
95-
FETCHCOMMAND='wget -t 3 -T 60 --passive-ftp -U "Portage (Flatcar SDK ${FLATCAR_SDK_VERSION}, https://www.flatcar.org) distfile-fetch" -O "\\\${DISTDIR}/\\\${FILE}" "\\\${URI}"'
96-
RESUMECOMMAND='wget -c -t 3 -T 60 --passive-ftp -U "Portage (Flatcar SDK ${FLATCAR_SDK_VERSION}, https://www.flatcar.org) distfile-fetch" -O "\\\${DISTDIR}/\\\${FILE}" "\\\${URI}"'
95+
FETCHCOMMAND='wget -t 3 -T 60 --passive-ftp -U "Portage (Flatcar SDK ${FLATCAR_SDK_VERSION}, flatcar.org) distfile-fetch" -O "\\\${DISTDIR}/\\\${FILE}" "\\\${URI}"'
96+
RESUMECOMMAND='wget -c -t 3 -T 60 --passive-ftp -U "Portage (Flatcar SDK ${FLATCAR_SDK_VERSION}, flatcar.org) distfile-fetch" -O "\\\${DISTDIR}/\\\${FILE}" "\\\${URI}"'
9797
9898
# Generally there isn't any need to add packages to @world by default.
9999
# You can use --select to override this.

0 commit comments

Comments
 (0)