Subject: Re: pkg/16695: www/dillo-0.6.5 fetches (does not!) a distribution that unpacks as 0.6.2!
To: None <wiz@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 05/08/2002 15:34:13
[ I wrote: ]
> How about something like this change (elide the check-for-base-clashes
> line -- that's for another discussion! :-):
Slightly more testing suggests this more robust implementation:
+ check-extract:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ extractname=$$(if [ -r ${EXTRACT_COOKIE} ]; then ${CAT} ${EXTRACT_COOKIE}; else echo "_CHECK_EXTRACT_COOKIE"; fi;); \
+ case "$$extractname" in \
+ "") ${ECHO_MSG} "*** Warning: ${WRKDIR} may contain an older version of ${PKGBASE}"; \
+ ${FALSE}; \
+ ;; \
+ "_CHECK_EXTRACT_COOKIE"|"${PKGNAME}") \
+ : ${DO_NADA} all is well; \
+ ;; \
+ *) ${ECHO_MSG} "*** Warning: Package version $$extractname in ${WRKDIR}"; \
+ ${ECHO_MSG} "*** Current version ${PKGNAME} in pkgsrc directory"; \
+ ${FALSE}; \
+ ;; \
+ esac
--
Greg A. Woods
+1 416 218-0098; <gwoods@acm.org>; <g.a.woods@ieee.org>; <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>