Changeset 302 in tailor


Ignore:
Timestamp:
05/17/05 01:41:58 (8 years ago)
Author:
lele@…
Hash name:
20050516234158-97f81-e4e9eaf38bf03caf84a22bf33329ba571eabf2af
Message:

Strip the final slash out of the repository at bootstrap
The upstream repository should not end with a slash, but for example
bash completion puts it in. Remove it at bootstrap time, if it's there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/tailor.py

    r274 r302  
    294294        """ 
    295295 
    296         from os.path import split 
     296        from os.path import split, sep 
    297297 
    298298        if source_kind == 'svn': 
    299             if not (module and module.startswith('/')): 
     299            if not (module and module.startswith(sep)): 
    300300                raise InvocationError('With SVN the module argument is ' 
    301                                       'mandatory and must start with a slash') 
    302                  
     301                                      'mandatory and must start ' 
     302                                      'with a "%s"' % sep) 
     303 
     304        if repository.endswith(sep): 
     305            repository = repository[:-1] 
     306             
    303307        if not subdir: 
    304308            subdir = split(module or repository)[1] or '' 
Note: See TracChangeset for help on using the changeset viewer.