[Lunar-commits] <lunar> Fix rework_module so it doesn't drop optional dep choices

v4hn v4hn at lunar-linux.org
Wed Sep 24 22:05:15 CEST 2014


commit 39532a7d5c7081ed9bac7aa520de27424513ab82
Author: v4hn <v4hn at lunar-linux.org>
Date: Wed, 24 Sep 2014 22:00:50 +0200
URL: https://github.com/lunar-linux/lunar/commit/39532a7d5c7081ed9bac7aa520de27424513ab82

Fix rework_module so it doesn't drop optional dep choices

fixup for fecd23e6662265aa33e49f05b016d5e6d253b5ec
Pretty astonishing nobody cared for two years...
---
  libs/check.lunar | +2/-2     
  1 file changed, 2 insertions(+), 2 deletions(-)

--- a/libs/check.lunar
+++ b/libs/check.lunar
@@ -38,9 +38,9 @@ rework_module() {
 			echo "$MODULE:$DEP:off:optional:$2:$3"
 		else
 			# check for the current depend selection
-			if grep -q "^$1:$2:on:" "$DEPENDS_STATUS_BACKUP" ; then
+			if grep -q "^$MODULE:$DEP:on:" "$DEPENDS_STATUS_BACKUP" ; then
 				echo "$MODULE:$DEP:on:optional:$2:$3"
-			elif grep -q "^$1:$2:off:" "$DEPENDS_STATUS_BACKUP" ; then
+			elif grep -q "^$MODULE:$DEP:off:" "$DEPENDS_STATUS_BACKUP" ; then
 				echo "$MODULE:$DEP:off:optional:$2:$3"
 			fi
 			# if we don't know the answer we leave it open for the user to decide




More information about the Lunar-commits mailing list