diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-15 15:28:58 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-15 15:28:58 +0000 |
commit | 2e8f7c457257d3741622a18e9d74b694901bee69 (patch) | |
tree | e4256c98062361af3337b6ef79fa0db4528edb8b /src/simplaret | |
parent | aaf39c7bc441b648c671f7b9a273211cd0660d8f (diff) | |
download | simplepkg-2e8f7c457257d3741622a18e9d74b694901bee69.tar.gz simplepkg-2e8f7c457257d3741622a18e9d74b694901bee69.tar.bz2 |
simplepkg: about to do a new release?
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@105 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src/simplaret')
-rwxr-xr-x | src/simplaret | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/simplaret b/src/simplaret index 1c0938b..c47e093 100755 --- a/src/simplaret +++ b/src/simplaret @@ -60,6 +60,10 @@ function simplaret_eval_config { # now we place "patches" on the top of ROOT_PRIORITY ROOT_PRIORITY="patches `echo $ROOT_PRIORITY | sed -e 's/patches//'`" + # force case insensitiveness + CONSIDER_ALL_PACKAGES_AS_PATCHES="`echo $CONSIDER_ALL_PACKAGES_AS_PATCHES | tr '[:upper:]' '[:lower:]'`" + DOWNLOAD_EVEN_APPLIED_PATCHES="`echo $DOWNLOAD_EVEN_APPLIED_PATCHES | tr '[:upper:]' '[:lower:]'`" + } function simplaret_get_index { @@ -525,7 +529,7 @@ function simplaret_search_and_download_patch { if [ "$package_installed" == "1" ]; then if [ "$repos_type" == "patches" ]; then - if [ "$DOWNLOAD_EVEN_APPLIED_PATCHES" == "1" ]; then + if [ "$DOWNLOAD_EVEN_APPLIED_PATCHES" == "1" ] || [ "$DOWNLOAD_EVEN_APPLIED_PATCHES" == "yes" ]; then get="yes" elif [ "$package_version" != "$installed_version" ] || [ "$package_build" != "$installed_build" ]; then get="yes" @@ -533,7 +537,7 @@ function simplaret_search_and_download_patch { elif [ "$repos_type" == "root" ] && [ "$is_patch" == "yes" ]; then - if [ "$DOWNLOAD_EVEN_APPLIED_PATCHES" == "1" ]; then + if [ "$DOWNLOAD_EVEN_APPLIED_PATCHES" == "1" ] || [ "$DOWNLOAD_EVEN_APPLIED_PATCHES" == "yes" ]; then get="yes" elif [ "$package_version" != "$installed_version" ] || [ "$package_build" != "$installed_build" ]; then get="yes" @@ -603,7 +607,7 @@ function simplaret_get_jail_patches { done # grab patches from every other places - if [ "$CONSIDER_ALL_PACKAGES_AS_PATCHES" == "1" ]; then + if [ "$CONSIDER_ALL_PACKAGES_AS_PATCHES" == "1" ] || [ "$CONSIDER_ALL_PACKAGES_AS_PATCHES" == "yes" ]; then # old behaviour was just one loop: # for sugested in `simplaret_search --formatted | grep -v patches`; do |