[game-data-packager] 01/01: bash_completion: fix glitch in yaml parser

Alexandre Detiste detiste-guest at moszumanska.debian.org
Tue May 19 09:33:23 UTC 2015


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

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 786b2849fb9a73f1ec1b160330640f27a193fd6e
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Tue May 19 11:33:12 2015 +0200

    bash_completion: fix glitch in yaml parser
---
 tools/bash_completion.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/bash_completion.py b/tools/bash_completion.py
index f853042..3bfea9e 100755
--- a/tools/bash_completion.py
+++ b/tools/bash_completion.py
@@ -37,7 +37,7 @@ for yaml_file in sorted(glob.glob('data/*.yaml')):
                 continue
             if line[0] != ' ':
                 break
-            if line[2] != ' ':
+            if line[2] not in (' ', '#'):
                 print(line.strip(':\n '), end=' ')
 
         print('')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list