[jhbuild] [git] Avoid the ternary operator for compatibility with Python < 2.5



commit 6cc64f6f026450f500d60e1dc70eb153c55dcd9b
Author: Dirk Wallenstein <halsmit t-online de>
Date:   Mon May 24 10:57:22 2010 +0200

    [git] Avoid the ternary operator for compatibility with Python < 2.5
    
    This reverts the syntax change additionally introduced in the commit
    '[git] Move the quiet option to its point of use'

 jhbuild/versioncontrol/git.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/versioncontrol/git.py b/jhbuild/versioncontrol/git.py
index a0722ab..80274f5 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -281,7 +281,10 @@ class GitBranch(Branch):
                         **git_extra_args)
 
     def _rewind_to_sticky_date(self, buildscript):
-        quiet = ['-q'] if self.config.quiet_mode else []
+        if self.config.quiet_mode:
+            quiet = ['-q']
+        else:
+            quiet = []
         commit = self._get_commit_from_date()
         branch = 'jhbuild-date-branch'
         branch_cmd = ['git', 'checkout'] + quiet + [branch]



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