--install checks if package file exist
--get-patches now does a --update for each arch and version before get the patches
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@86
04377dda-e619-0410-9926-
eae83683ac58
VERSION="`default_version`"
ARCH="`default_arch`"
+ simplaret_update
+
# in case there's something wrong with the jail, abort
if [ -z "$VERSION" ] || [ -z "$ARCH" ]; then
return
package="`simplaret_get $1 --silent`"
if [ "$?" == "0" ]; then
- $root upgradepkg --install-new $package
+ if [ -f "$package" ]; then
+ $root upgradepkg --install-new $package
+ else
+ echo "error: could not install package $package: file not found"
+ fi
else
echo "error: could not install package $package"
exit 1