1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Don't always raise an exception when using hg purge

This commit is contained in:
Daniel Martí 2014-01-20 10:01:49 +01:00
parent bebadde877
commit 482ae77854

View File

@ -564,7 +564,7 @@ class vcs_hg(vcs):
myfile.write("\n[extensions]\nhgext.purge=\n")
if subprocess.call(['hg', 'purge', '--all'], cwd=self.local) != 0:
raise VCSException("HG purge failed")
else:
elif p.resultcode != 0:
raise VCSException("HG purge failed")
def gettags(self):