Modified __package to allow pkgsite param, bugfix in __package_pkg_freebsd where it wasn't setting the PACKAGESITE variable on remote side.

This commit is contained in:
Jake Guffey 2012-02-17 12:18:06 -05:00
parent 5443d1a64a
commit b7e3378262
2 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
name
version
type
pkgsite

View File

@ -77,6 +77,7 @@ execcmd(){
# Set the PACKAGESITE if we're ADDing a new package
if [ "$1" = "add" -a -n "$pkgsite" ]; then
# Use http.../All/ if we know the exact version we want, use .../Latest/ otherwise
pkgsite="export PACKAGESITE=${pkgsite}"
[ -n "$version" ] && pkgsite="${pkgsite}/All/" || pkgsite="${pkgsite}/Latest/"
echo "${pkgsite}"
fi