From 4919b031dc6d78a42c25cb2248ab2a2f97f44b16 Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Thu, 13 Sep 2018 00:33:36 -0700 Subject: [PATCH] Fix d/copyright uploaders check for much older debcargo versions e.g. dtoa --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 7b31da0eb..c60b1800f 100755 --- a/update.sh +++ b/update.sh @@ -35,7 +35,7 @@ fi if ! grep -q uploaders "$PKGCFG"; then # try to auto-fill in uploaders if debcargo.toml doesn't have it - uploader="$(grep -A1 "[0-9][0-9]* Debian Rust Maintainers" "$PKGDIR/debian/copyright" | tail -n1 | sed -re 's/^\s*[0-9]+\s*//g')" + uploader="$(egrep -A1 "[0-9][0-9]*( Debian)? Rust Maintainers" "$PKGDIR/debian/copyright" | tail -n1 | sed -re 's/^\s*[0-9]+\s*//g')" sed -i -e 's/^\(overlay.*\)$/\1\nuploaders = ["'"$uploader"'"]/' "$PKGCFG" if [ "$uploader" != "$DEBFULLNAME <$DEBEMAIL>" ]; then echo >&2 "$0: Auto-added $uploader to uploaders in debcargo.toml, based on d/copyright"