[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 1/3] Build: eliminate a lambda function.

From: Beat Bolli
Subject: [gpsd-dev] [PATCH 1/3] Build: eliminate a lambda function.
Date: Thu, 31 Oct 2013 21:11:08 +0100

This produces a more useful build log.
 SConstruct | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index b63c000..756616c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1168,7 +1168,8 @@ generated_sources = ['packet_names.h', 'timebase.h', 
'gpsd.h', "ais_json.i",
 # by the U.S. Naval observatory. It gets kept in the repository so we can
 # build without Internet access.
 from leapsecond import save_leapseconds
-leapseconds_cache_rebuild = lambda target, source, env: 
+def leapseconds_cache_rebuild(target, source, env):
+    save_leapseconds(target[0].abspath)
 if 'dev' in gpsd_version or not os.path.exists('leapseconds.cache'):
     leapseconds_cache = env.Command(target="leapseconds.cache",

reply via email to

[Prev in Thread] Current Thread [Next in Thread]