K 10 svn:author V 5 dougb K 8 svn:date V 27 2007-08-27T22:48:24.000000Z K 7 svn:log V 534 Improvement =========== 1. Before calling pkg_create for the installed version of the port, cd into the PKGREPOSITORY directory. This not only simplifies the code, it helps handle the problems of ports trees mounted read-only. [1] 2. Factor out initialization of the $pkgrep directory into a function. Bug fixes ========= 1. Before calling 'find ${pkgrep}/ ... -delete' assert that $pkgrep is not empty. 2. Make sure that $pkgrep is initialized everywhere it's needed. Suggested by: Hans Lambermont [1] END