diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2006-11-13 01:06:04 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2006-11-13 01:06:04 +0000 |
commit | e84a823cf917ac13db1bbd8e52072196b894e2a8 (patch) | |
tree | d15cfc7dc55b7e0b72a37fd13e054e61b8e183a7 /lib | |
parent | 8164018d0940b8cc542cb5995a1e7c85187bbdb7 (diff) | |
download | simplepkg-e84a823cf917ac13db1bbd8e52072196b894e2a8.tar.gz simplepkg-e84a823cf917ac13db1bbd8e52072196b894e2a8.tar.bz2 |
changing jail-upgrade behavior
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@26 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/common.sh b/lib/common.sh index 5c9a4fa..6f66050 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -206,8 +206,19 @@ function eval_config { echo "$SIMPLARET not found, please install it before run $0" fi - if [ -z "PATCHES_DIR" ]; then + if [ -z "$PATCHES_DIR" ]; then echo error: please adjust a value for PATCHES_DIR at $CONF fi + + CONSIDER_ALL_PACKAGES_AS_PATCHES="`echo $CONSIDER_ALL_PACKAGES_AS_PATCHES | tr '[:lower:]' '[:upper:]'`" + if [ "$CONSIDER_ALL_PACKAGES_AS_PATCHES" != "YES" ] && \ + [ "$CONSIDER_ALL_PACKAGES_AS_PATCHES" != "1" ]; then + # Enabling this option, jail-upgrade will look at your + # standard repositories for new packages; if it find a package + # with different version of your current installed package and + # also this package isnt in the packages folder, then the new + # package is apllied; if in doubt, just say no or leave blank. + CONSIDER_ALL_PACKAGES_AS_PATCHES="0" + fi } |