forked from ungleich-public/cdist
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:
parent
5443d1a64a
commit
b7e3378262
2 changed files with 2 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
name
|
name
|
||||||
version
|
version
|
||||||
type
|
type
|
||||||
|
pkgsite
|
||||||
|
|
|
@ -77,6 +77,7 @@ execcmd(){
|
||||||
# Set the PACKAGESITE if we're ADDing a new package
|
# Set the PACKAGESITE if we're ADDing a new package
|
||||||
if [ "$1" = "add" -a -n "$pkgsite" ]; then
|
if [ "$1" = "add" -a -n "$pkgsite" ]; then
|
||||||
# Use http.../All/ if we know the exact version we want, use .../Latest/ otherwise
|
# 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/"
|
[ -n "$version" ] && pkgsite="${pkgsite}/All/" || pkgsite="${pkgsite}/Latest/"
|
||||||
echo "${pkgsite}"
|
echo "${pkgsite}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue