]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
simplepkg: about to do a new release?
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 15 Jan 2007 15:28:58 +0000 (15:28 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 15 Jan 2007 15:28:58 +0000 (15:28 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@105 04377dda-e619-0410-9926-eae83683ac58

simplepkg.SlackBuild
src/simplaret

index fb790d639b6bbe3ecf70f4c384fe101456ec418e..8c41aac8bf2c4074209c4374800b25642840e2b4 100755 (executable)
@@ -6,7 +6,7 @@
 PACKAGE="simplepkg"
 PACK_DIR="package-$PACKAGE"
 BUILD=${BUILD:=1rha}
-VERSION="0.4.9"
+VERSION="0.4.9pre7"
 ARCH="noarch"
 LIBEXEC="/usr/libexec/$PACKAGE"
 BINDIR="/usr/bin"
index 1c0938bf0b5427c364e21dc4792e7ad024ba42ca..c47e093650b470445635ab7228528a8e5c12b2b7 100755 (executable)
@@ -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