Show More
@@ -114,12 +114,13 b' def has_bzr():' | |||||
114 | except ImportError: |
|
114 | except ImportError: | |
115 | return False |
|
115 | return False | |
116 |
|
116 | |||
117 |
@check("bzr |
|
117 | @checkvers("bzr", "Canonical's Bazaar client >= %s", (1.14,)) | |
118 |
def has_bzr |
|
118 | def has_bzr_range(v): | |
|
119 | major, minor = v.split('.')[0:2] | |||
119 | try: |
|
120 | try: | |
120 | import bzrlib |
|
121 | import bzrlib | |
121 | return (bzrlib.__doc__ is not None |
|
122 | return (bzrlib.__doc__ is not None | |
122 |
and bzrlib.version_info[:2] >= ( |
|
123 | and bzrlib.version_info[:2] >= (int(major), int(minor))) | |
123 | except ImportError: |
|
124 | except ImportError: | |
124 | return False |
|
125 | return False | |
125 |
|
126 |
General Comments 0
You need to be logged in to leave comments.
Login now