[reprotest] 01/01: If no virtual_server is given then use "null"

Ximin Luo infinity0 at debian.org
Thu Sep 22 13:23:48 UTC 2016


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

infinity0 pushed a commit to branch master
in repository reprotest.

commit 4a080375d2b30a3da1f438f37690bc6203f01dc1
Author: Ximin Luo <infinity0 at debian.org>
Date:   Thu Sep 22 15:23:19 2016 +0200

    If no virtual_server is given then use "null"
---
 reprotest/__init__.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index 500b177..8b65923 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -67,7 +67,7 @@ class Script(collections.namedtuple('_Script', 'build_command setup cleanup')):
             setarch.
         setup (_shell_ast.AndList): These are shell commands that change the
             shell environment and need to be run as part of the same script as
-            the main build command but don't take other commands as arguments.  
+            the main build command but don't take other commands as arguments.
             These execute conditionally because if one command fails,
             the whole script should fail.  Examples: cd, umask.
         cleanup (_shell_ast.List): All commands that have to be run to return
@@ -350,7 +350,7 @@ COMMAND_LINE_OPTIONS = types.MappingProxyType(collections.OrderedDict([
         'default': None, 'nargs': '?',
         'help': 'Build artifact to test for reproducibility.'})),
     ('virtual_server_args', types.MappingProxyType({
-        'default': None, 'nargs': '*',
+        'default': ["null"], 'nargs': '*',
         'help': 'Arguments to pass to the virtual_server.'})),
     ('--source-root', types.MappingProxyType({
         'dest': 'source_root', 'type': pathlib.Path,
@@ -406,10 +406,10 @@ def command_line():
 
     return types.MappingProxyType({k:v for k, v in vars(args).items() if v is not None})
 
-        
+
 def main():
     config_options = config()
-    
+
     # Argparse exits with status code 2 if something goes wrong, which
     # is already the right status exit code for reprotest.
     command_line_options = command_line()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reprotest.git



More information about the Reproducible-commits mailing list