cookutils diff cook @ rev 1082

Fix $MAINTAINER fetch for the case "User <user@example.com>"; cache/proxy/extract Repology badges for maintainers
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jul 12 18:01:24 2018 +0300 (2018-07-12)
parents 8683bf3e7c02
children 1c24b6b06c93
line diff
     1.1 --- a/cook	Tue Jul 10 20:11:48 2018 +0300
     1.2 +++ b/cook	Thu Jul 12 18:01:24 2018 +0300
     1.3 @@ -1679,6 +1679,7 @@
     1.4  		[ -f "$WOK/$pkg/receipt" ] || continue
     1.5  		unset PACKAGE MAINTAINER
     1.6  		. $WOK/$pkg/receipt
     1.7 +		MAINTAINER=$(echo $MAINTAINER | sed 's|.*<||; s|>.*||')
     1.8  		echo -e "$MAINTAINER\t$PACKAGE"
     1.9  	done | sort > $db
    1.10  }