Faidon Liambotis has uploaded a new change for review. https://gerrit.wikimedia.org/r/320772
Change subject: mirrors: update to a newer Ubuntu mirror script ...................................................................... mirrors: update to a newer Ubuntu mirror script Copied over from https://wiki.ubuntu.com/Mirrors/Scripts, this moves InRelease to the second stage rsync. See Colin Watson's explanation of the new by-hash method and why this is important for more context: http://www.chiark.greenend.org.uk/~cjwatson/blog/no-more-hash-sum-mismatch-errors.html Change-Id: I59ce7746500366f3f6f56ded3e13e5fe505d2aa8 --- M modules/mirrors/files/update-ubuntu-mirror 1 file changed, 6 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/72/320772/1 diff --git a/modules/mirrors/files/update-ubuntu-mirror b/modules/mirrors/files/update-ubuntu-mirror index 51358c7..babd227 100755 --- a/modules/mirrors/files/update-ubuntu-mirror +++ b/modules/mirrors/files/update-ubuntu-mirror @@ -1,8 +1,12 @@ #/bin/dash fatal() { - echo "$1" 1>&2 + echo "$1" exit 1 +} + +warn() { + echo "$1" } # Find a source mirror near you which supports rsync on @@ -20,7 +24,7 @@ rsync --recursive --times --links --hard-links \ --stats \ --exclude "Packages*" --exclude "Sources*" \ - --exclude "Release*" \ + --exclude "Release*" --exclude "InRelease" \ ${RSYNCSOURCE} ${BASEDIR} || fatal "First stage of sync failed." rsync --recursive --times --links --hard-links \ -- To view, visit https://gerrit.wikimedia.org/r/320772 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I59ce7746500366f3f6f56ded3e13e5fe505d2aa8 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Faidon Liambotis <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
