Fix d/copyright uploaders check for much older debcargo versions e.g. dtoa

This commit is contained in:
Ximin Luo 2018-09-13 00:33:36 -07:00
parent 02e32d87da
commit 4919b031dc

View File

@ -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"