mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Force Subversion to overwrite files
This commit is contained in:
parent
6ae6c23295
commit
347ee22ca3
1 changed files with 6 additions and 4 deletions
10
build.py
10
build.py
|
@ -162,10 +162,12 @@ for app in apps:
|
|||
print "Git reset failed"
|
||||
sys.exit(1)
|
||||
elif app['repotype'] == 'svn':
|
||||
if subprocess.call(['svn', 'update', '-r', thisbuild['commit']],
|
||||
cwd=build_dir) != 0:
|
||||
print "Svn update failed"
|
||||
sys.exit(1)
|
||||
for svncommand in (['svn', 'update', '--force',
|
||||
'-r', thisbuild['commit']],
|
||||
['svn', 'revert', '-R', '.']):
|
||||
if subprocess.call(svncommand, cwd=build_dir) != 0:
|
||||
print "Svn update failed"
|
||||
sys.exit(1)
|
||||
elif app['repotype'] == 'hg':
|
||||
if subprocess.call(['hg', 'checkout', thisbuild['commit']],
|
||||
cwd=build_dir) != 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue