mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
improved svnadmin call and fixed the initools_folder line
This commit is contained in:
parent
79543c74fa
commit
51ed26d5a6
1 changed files with 6 additions and 2 deletions
|
@ -12,8 +12,12 @@ def _create_initools_repository():
|
|||
|
||||
def _dump_initools_repository():
|
||||
filename, _ = urllib.urlretrieve('http://bitbucket.org/hltbra/pip-initools-dump/raw/d7a9beef1bbe/initools_colorstudy.dump')
|
||||
initools_folder = os.path.join(_get_vcs_folder())#, 'INITools')
|
||||
subprocess.call('svnadmin load . < %s' % filename, cwd=initools_folder, shell=True)
|
||||
initools_folder = os.path.join(_get_vcs_folder(), 'INITools')
|
||||
devnull = open(os.devnull, 'w')
|
||||
dump = open(filename)
|
||||
subprocess.call(['svnadmin', 'load', initools_folder], stdin=dump, stdout=devnull)
|
||||
dump.close()
|
||||
devnull.close()
|
||||
|
||||
|
||||
def _create_svn_repository_for_initools():
|
||||
|
|
Loading…
Reference in a new issue