mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-04 02:00:11 +02:00
Don't output when checking repo
This commit is contained in:
parent
5525c5cd5f
commit
18ef1b53bc
@ -294,7 +294,8 @@ class vcs_git(vcs):
|
|||||||
# fdroidserver) and then we'll proceed to destroy it! This is called as
|
# fdroidserver) and then we'll proceed to destroy it! This is called as
|
||||||
# a safety check.
|
# a safety check.
|
||||||
def checkrepo(self):
|
def checkrepo(self):
|
||||||
p = FDroidPopen(['git', 'rev-parse', '--show-toplevel'], cwd=self.local)
|
p = FDroidPopen(['git', 'rev-parse', '--show-toplevel'],
|
||||||
|
cwd=self.local, output=False)
|
||||||
result = p.stdout.rstrip()
|
result = p.stdout.rstrip()
|
||||||
if not result.endswith(self.local):
|
if not result.endswith(self.local):
|
||||||
raise VCSException('Repository mismatch')
|
raise VCSException('Repository mismatch')
|
||||||
@ -369,7 +370,8 @@ class vcs_gitsvn(vcs):
|
|||||||
# fdroidserver) and then we'll proceed to destory it! This is called as
|
# fdroidserver) and then we'll proceed to destory it! This is called as
|
||||||
# a safety check.
|
# a safety check.
|
||||||
def checkrepo(self):
|
def checkrepo(self):
|
||||||
p = FDroidPopen(['git', 'rev-parse', '--show-toplevel'], cwd=self.local)
|
p = FDroidPopen(['git', 'rev-parse', '--show-toplevel'],
|
||||||
|
cwd=self.local, output=False)
|
||||||
result = p.stdout.rstrip()
|
result = p.stdout.rstrip()
|
||||||
if not result.endswith(self.local):
|
if not result.endswith(self.local):
|
||||||
raise VCSException('Repository mismatch')
|
raise VCSException('Repository mismatch')
|
||||||
|
Loading…
Reference in New Issue
Block a user