[packages/grub2] - explicit check for true in new env var

baggins baggins at pld-linux.org
Mon Apr 15 11:51:51 CEST 2013


commit 6496132c5144b7a304b862c6b2439fbd9b0fee7c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Apr 15 11:51:04 2013 +0200

    - explicit check for true in new env var

 add-GRUB-DISABLE-SUBMENU-option.patch | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/add-GRUB-DISABLE-SUBMENU-option.patch b/add-GRUB-DISABLE-SUBMENU-option.patch
index c4ffb92..54f733d 100644
--- a/add-GRUB-DISABLE-SUBMENU-option.patch
+++ b/add-GRUB-DISABLE-SUBMENU-option.patch
@@ -41,7 +41,7 @@ index e2b8ab3..9427a39 100644
 -  if [ "x$is_first_entry" = xtrue ]; then
 -    linux_entry "${OS}" "${version}" simple \
 -    "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
-+  if [ "x${GRUB_DISABLE_SUBMENU}" = x ]; then
++  if [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
 +    if [ "x$is_first_entry" = xtrue ]; then
 +      linux_entry "${OS}" "${version}" simple \
 +      "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
@@ -68,7 +68,7 @@ index e2b8ab3..9427a39 100644
  # add a closing '}' for the submenu command.
 -if [ x"$is_first_entry" != xtrue ]; then
 -  echo '}'
-+if [ "x${GRUB_DISABLE_SUBMENU}" = x ]; then
++if [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
 +  if [ x"$is_first_entry" != xtrue ]; then
 +    echo '}'
 +  fi
@@ -82,7 +82,7 @@ index e2b8ab3..9427a39 100644
  	fi
  
 -	if [ "x$is_first_entry" = xtrue ]; then
-+        if [ "x${GRUB_DISABLE_SUBMENU}" = x ]; then
++        if [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
 +	  if [ "x$is_first_entry" = xtrue ]; then
  	    linux_entry "${OS}" "${version}" "${xen_version}" simple \
  		"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
@@ -105,7 +105,7 @@ index e2b8ab3..9427a39 100644
  	list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
      done
 -    if [ x"$is_first_entry" != xtrue ]; then
-+    if [ "x${GRUB_DISABLE_SUBMENU}" = x ]; then
++    if [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
 +      if [ x"$is_first_entry" != xtrue ]; then
  	echo '	}'
 +      fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grub2.git/commitdiff/51d4e70010f5105d608ec8769270eaa1cd711101



More information about the pld-cvs-commit mailing list