[Lunar-commits] <lunar> Only use the moonbase install log if it exists

Peter de Ridder peter at lunar-linux.org
Thu Aug 23 20:52:40 CEST 2012


commit 657c1285c6a7c58c37f53a88bc8e749a040cefd6
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Thu, 23 Aug 2012 11:52:40 -0700
URL: https://github.com/lunar-linux/lunar/commit/657c1285c6a7c58c37f53a88bc8e749a040cefd6

Only use the moonbase install log if it exists
---
  libs/depends.lunar                                           +1/-1     
  1 files changed, 1 insertions (+), 1 deletions (-)

--- a/libs/depends.lunar
+++ b/libs/depends.lunar
@@ -415,7 +415,7 @@ create_depends_cache()
     }
 
     # speedups for system moonbases:
-    if [ "$MOONBASE" == "/var/lib/lunar/moonbase" ] ; then
+    if [ "$MOONBASE" == "/var/lib/lunar/moonbase" ] && [ -f "$INSTALL_LOGS/moonbase-$(installed_version moonbase)" ] ; then
       DEPFILES=$(grep "/DEPENDS$" "$INSTALL_LOGS/moonbase-$(installed_version moonbase)")
       # don't forget zlocal:
       if [ "$ZLOCAL_OVERRIDES" == "on" ] ; then




More information about the Lunar-commits mailing list