mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Don't output when checking repo
This commit is contained in:
parent
5525c5cd5f
commit
18ef1b53bc
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue