[Lunar-commits] <lunar> Incorrect test in unreachable code

Peter de Ridder peter at lunar-linux.org
Mon Jul 9 00:54:16 CEST 2012


commit 197da167037a146b532bf215b824e6875dccf0c3
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Sun, 08 Jul 2012 15:54:16 -0700
URL: https://github.com/lunar-linux/lunar/commit/197da167037a146b532bf215b824e6875dccf0c3

Incorrect test in unreachable code
---
  libs/depends.lunar                                           +1/-1     
  1 files changed, 1 insertions (+), 1 deletions (-)

--- a/libs/depends.lunar
+++ b/libs/depends.lunar
@@ -275,7 +275,7 @@ satisfy_depends()  {
        DEP_OFF=$(echo $LINE | cut -d: -f6)
 
     if [ -n "$FIX" ] ; then
-      if DEP_STATUS="on" ; then
+      if [ $DEP_STATUS == "on" ] ; then
         lin $FIX $DEP_MODULE
       fi
     elif [ "$DEP_STATUS" == "off" ] || module_exiled $DEP_MODULE ; then




More information about the Lunar-commits mailing list