[jhbuild] sysdeps: Include alternative dependencies in --dump



commit 29e7e7eab8d943e4b06987af5e1f37a5d7d35710
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Mon Sep 21 03:35:01 2015 +0800

    sysdeps: Include alternative dependencies in --dump
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754041

 jhbuild/commands/sysdeps.py |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/commands/sysdeps.py b/jhbuild/commands/sysdeps.py
index 55d5221..779969c 100644
--- a/jhbuild/commands/sysdeps.py
+++ b/jhbuild/commands/sysdeps.py
@@ -20,6 +20,7 @@
 from optparse import make_option
 import logging
 import os.path
+import sys
 
 import jhbuild.moduleset
 from jhbuild.errors import FatalError
@@ -79,7 +80,10 @@ class cmd_sysdeps(cmd_build):
 
                     if module.systemdependencies is not None:
                         for dep_type, value, altdeps in module.systemdependencies:
-                            print '{0}:{1}'.format(dep_type, value)
+                            sys.stdout.write('{0}:{1}'.format(dep_type, value))
+                            for dep_type, value, empty in altdeps:
+                                sys.stdout.write(',{0}:{1}'.format(dep_type, value))
+                            sys.stdout.write('\n')
 
             return
 
@@ -112,7 +116,10 @@ class cmd_sysdeps(cmd_build):
 
                     if module.systemdependencies is not None:
                         for dep_type, value, altdeps in module.systemdependencies:
-                            print '{0}:{1}'.format(dep_type, value)
+                            sys.stdout.write('{0}:{1}'.format(dep_type, value))
+                            for dep_type, value, empty in altdeps:
+                                sys.stdout.write(',{0}:{1}'.format(dep_type, value))
+                            sys.stdout.write('\n')
 
             if have_too_old:
                 return 1


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