[Lunar-commits] <lunar> Held modules are never expired.

Peter de Ridder peter at lunar-linux.org
Fri Jun 7 09:17:06 CEST 2013


commit 5c190846837e8bab4cd2cfe733838c2472314eaa
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Wed, 05 Jun 2013 13:58:58 -0700
URL: https://github.com/lunar-linux/lunar/commit/5c190846837e8bab4cd2cfe733838c2472314eaa

Held modules are never expired.
---
  libs/modules.lunar | +1/-1     
  1 file changed, 1 insertion(+), 1 deletion(-)

--- a/libs/modules.lunar
+++ b/libs/modules.lunar
@@ -686,7 +686,7 @@ module_is_expired() {
     if [ "$MODULE" == moonbase ] ; then
       return 255
     fi
-    LINE=$(awk -F: -v mod=$MODULE '$1==mod && $3 ~ /(^|\+)installed(\+|$)/ {print "IDATE="$2" IVERSION="$4}' "$MODULE_STATUS")
+    LINE=$(awk -F: -v mod=$MODULE '$1==mod && $3 ~ /(^|\+)installed(\+|$)/ && $3 !~ /(^|\+)held(\+|$)/ {print "IDATE="$2" IVERSION="$4}' "$MODULE_STATUS")
     if [ -n "$LINE" ] ; then
       eval $LINE
       if run_details $MODULE &> /dev/null ; then




More information about the Lunar-commits mailing list