From: fess <fe...@us...> - 2004-01-16 04:11:21
|
Update of /cvsroot/wigwam/wigwam-base/build-scripts In directory sc8-pr-cvs1:/tmp/cvs-serv2012/build-scripts Modified Files: install-package Log Message: when packagectl build fails, remove the md5sums file and the files file, that way subsequent installs will redownload any changed stuff. very nice when creating new packages, and a frequent developer request. Index: install-package =================================================================== RCS file: /cvsroot/wigwam/wigwam-base/build-scripts/install-package,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- install-package 5 Nov 2003 19:05:41 -0000 1.2 +++ install-package 16 Jan 2004 04:11:18 -0000 1.3 @@ -51,11 +51,22 @@ test -r "$PLAYPEN_ROOT/ext/packages/$EXT_PACKAGE-$EXT_VERSION.is_built" || { run-configurable bin/build/maybe-download-package \ "$EXT_PACKAGE" "$EXT_VERSION" || { + rm -f "$PLAYPEN_ROOT/ext/packages/$EXT_PACKAGE-$EXT_VERSION.md5sums" + rm -f "$PLAYPEN_ROOT/ext/packages/$EXT_PACKAGE-$EXT_VERSION.files" echo "$id: error running maybe-download-package" 1>&2 exit 1 } run-configurable bin/build/build-package $maybe_list_updated \ "$EXT_PACKAGE" "$EXT_VERSION" || { + + # remove the md5sum and files file, as an aide to develpment + # packages mostly fail to build when they are being developed + # removing the md5sum and files file will cause it to get re download + # in case the packager is working on it, and changing it rapidly. + rm -f "$PLAYPEN_ROOT/ext/packages/$EXT_PACKAGE-$EXT_VERSION.md5sums" + rm -f "$PLAYPEN_ROOT/ext/packages/$EXT_PACKAGE-$EXT_VERSION.verified" + rm -f "$PLAYPEN_ROOT/ext/packages/$EXT_PACKAGE-$EXT_VERSION.files" + echo "$id: error running build-package" 1>&2 exit 1 } |