|
|
0e1913c |
From df33dac0b489db80c5a51705550bf53146c1d57b Mon Sep 17 00:00:00 2001
|
|
|
0e1913c |
From: David Trowbridge <trowbrds@gmail.com>
|
|
|
0e1913c |
Date: Fri, 25 Apr 2014 13:25:25 -0700
|
|
|
0e1913c |
Subject: [PATCH 6/8] Fix perforce options access.
|
|
|
0e1913c |
|
|
|
0e1913c |
Not all rbt commands add the perforce command-line options, but the p4client
|
|
|
0e1913c |
was accessing them as if they did. Trivial fix.
|
|
|
0e1913c |
---
|
|
|
0e1913c |
rbtools/clients/perforce.py | 6 +++---
|
|
|
0e1913c |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
0e1913c |
|
|
|
0e1913c |
diff --git a/rbtools/clients/perforce.py b/rbtools/clients/perforce.py
|
|
|
0e1913c |
index 06ef6e49aead546a63d844560e9f3893f7d5bcd0..4f67264d590df81201f934d97164f7d823996286 100644
|
|
|
0e1913c |
--- a/rbtools/clients/perforce.py
|
|
|
0e1913c |
+++ b/rbtools/clients/perforce.py
|
|
|
0e1913c |
@@ -98,13 +98,13 @@ class P4Wrapper(object):
|
|
|
0e1913c |
if marshalled:
|
|
|
0e1913c |
cmd += ['-G']
|
|
|
0e1913c |
|
|
|
0e1913c |
- if self.options.p4_client:
|
|
|
0e1913c |
+ if getattr(self.options, 'p4_client', None):
|
|
|
0e1913c |
cmd += ['-c', self.options.p4_client]
|
|
|
0e1913c |
|
|
|
0e1913c |
- if self.options.p4_port:
|
|
|
0e1913c |
+ if getattr(self.options, 'p4_port', None):
|
|
|
0e1913c |
cmd += ['-p', self.options.p4_port]
|
|
|
0e1913c |
|
|
|
0e1913c |
- if self.options.p4_passwd:
|
|
|
0e1913c |
+ if getattr(self.options, 'p4_passwd', None):
|
|
|
0e1913c |
cmd += ['-P', self.options.p4_passwd]
|
|
|
0e1913c |
|
|
|
0e1913c |
cmd += p4_args
|
|
|
0e1913c |
--
|
|
|
0e1913c |
1.9.0
|
|
|
0e1913c |
|