svn commit: r301039 - head/archivers/zlib

Alex Kozlov spam at rm-rf.kiev.ua
Wed Jul 18 16:56:54 UTC 2012


On Wed, Jul 18, 2012 at 01:41:21AM -0700, Doug Barton wrote:
> On 07/17/2012 17:19, Alex Kozlov wrote:
> > Those two lines above are not only list of distinfo files with absent
> > EOL at the last line, but also an example of real parser which broken
> > by such distinfo.
> So again, what I'm asking for are the *details* of what was broken, and
> how.
I apologize, it seems that I hit send a little too soon.
You can see for the details ports-mgmt/pchecker, brief excerpt:
file=/usr/ports/mail/meta1/distinfo

while read alg fname equal chksum; do
	case "${chksum}" in
		*IGNORE) ;;
		*)
			fname="${fname##(}"
			fname="${fname%%)}"
			case "${alg}" in
				SIZE) echo "${fname}_size" ;;
				SHA256) echo "${fname}_sha256" ;;
				'#') ;;
				*) echo "${fname}_anomaly" ;;
			esac
			;;
	esac
done < "${file}"

> And FWIW, since that was my *first* question, you could have started off
> with this answer instead of engaging in pointless theoretical discussion.
It was never completely theoretical for me.


-- 
Alex



More information about the svn-ports-all mailing list