1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Fix weird indentation in the hg purge changes

This commit is contained in:
Daniel Martí 2014-01-15 16:40:27 +01:00
parent c09382fa82
commit 0a34765461

View File

@ -558,13 +558,13 @@ class vcs_hg(vcs):
p = subprocess.Popen(['hg', 'purge', '--all'], stdout=subprocess.PIPE,
cwd=self.local)
result = p.communicate()[0]
# Also delete untracked files, we have to enable purge extension for that:
if "'purge' is provided by the following extension" in result:
#Also delete untracked files, we have to enable purge extension for that:
with open(self.local+"/.hg/hgrc", "a") as myfile:
myfile.write("\n[extensions]\nhgext.purge=")
myfile.write("\n[extensions]\nhgext.purge=")
if subprocess.call(['hg', 'purge', '--all'],
cwd=self.local) != 0:
raise VCSException("HG purge failed")
cwd=self.local) != 0:
raise VCSException("HG purge failed")
else:
raise VCSException("HG purge failed")