209 except ImportError: |
209 except ImportError: |
210 return False |
210 return False |
211 |
211 |
212 def has_windows(): |
212 def has_windows(): |
213 return os.name == 'nt' |
213 return os.name == 'nt' |
|
214 |
|
215 def has_system_sh(): |
|
216 return os.name != 'nt' |
214 |
217 |
215 checks = { |
218 checks = { |
216 "baz": (has_baz, "GNU Arch baz client"), |
219 "baz": (has_baz, "GNU Arch baz client"), |
217 "bzr": (has_bzr, "Canonical's Bazaar client"), |
220 "bzr": (has_bzr, "Canonical's Bazaar client"), |
218 "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), |
221 "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), |
238 "svn": (has_svn, "subversion client and admin tools"), |
241 "svn": (has_svn, "subversion client and admin tools"), |
239 "svn13": (has_svn13, "subversion client and admin tools >= 1.3"), |
242 "svn13": (has_svn13, "subversion client and admin tools >= 1.3"), |
240 "svn15": (has_svn15, "subversion client and admin tools >= 1.5"), |
243 "svn15": (has_svn15, "subversion client and admin tools >= 1.5"), |
241 "svn-bindings": (has_svn_bindings, "subversion python bindings"), |
244 "svn-bindings": (has_svn_bindings, "subversion python bindings"), |
242 "symlink": (has_symlink, "symbolic links"), |
245 "symlink": (has_symlink, "symbolic links"), |
|
246 "system-sh": (has_system_sh, "system() uses sh"), |
243 "tla": (has_tla, "GNU Arch tla client"), |
247 "tla": (has_tla, "GNU Arch tla client"), |
244 "unix-permissions": (has_unix_permissions, "unix-style permissions"), |
248 "unix-permissions": (has_unix_permissions, "unix-style permissions"), |
245 "windows": (has_windows, "Windows"), |
249 "windows": (has_windows, "Windows"), |
246 } |
250 } |
247 |
251 |