gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-taler-build-scripts] branch master updated: fix outp


From: gnunet
Subject: [GNUnet-SVN] [taler-taler-build-scripts] branch master updated: fix output
Date: Sat, 05 Oct 2019 19:55:27 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository taler-build-scripts.

The following commit(s) were added to refs/heads/master by this push:
     new cbc00c0  fix output
cbc00c0 is described below

commit cbc00c008d5e03bb64c392c6a9e7046568b67ec2
Author: Florian Dold <address@hidden>
AuthorDate: Sat Oct 5 23:25:21 2019 +0530

    fix output
---
 configure.py | 26 ++++++++++----------------
 1 file changed, 10 insertions(+), 16 deletions(-)

diff --git a/configure.py b/configure.py
index 16bb8e7..f78d932 100644
--- a/configure.py
+++ b/configure.py
@@ -73,32 +73,27 @@ def _tool_yarn():
 
 
 def _tool_posix():
+    messages = []
+
     tool_find = _existence('find')
     if tool_find is None:
-        msg_find = 'prerequiste find(1) not found.'
-    else:
-        msg_find = ''
+        messages.append('prerequiste find(1) not found.')
 
     tool_xargs = _existence('xargs')
     if tool_xargs is None:
-        msg_xargs = 'prerequiste xargs(1) not found.'
-    else:
-        msg_xargs = ''
+        messages.append('prerequiste xargs(1) not found.')
 
     tool_msgmerge = _existence('msgmerge')
     if tool_msgmerge is None:
-        msg_msgmerge = 'prerequiste msgmerge(1) not found.'
-    else:
-        msg_msgmerge = ''
+        messages.append('prerequiste msgmerge(1) not found.')
 
-    return [msg_find, msg_xargs, msg_msgmerge]
+    return messages
 
 
 def _read_prefix():
     logging.basicConfig(level=logging.DEBUG)
     logger = logging.getLogger(__name__)
 
-
     if 'DEBUG' in os.environ:
         logger.debug('PREFIX from argv')
     parser = argparse.ArgumentParser()
@@ -155,9 +150,8 @@ def main():
     f.close()
     print(_tool_node())
     posixlist = _tool_posix()
-    for x in range(len(posixlist)):
-        if x != '':
-            print(posixlist[x] + "\n")
-
+    for msg in posixlist:
+        print(posixlist[x])
 
-main()
+if __name__ == "__main__":
+    main()

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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