mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 07:52:35 +03:00
Fix init with common, don't require cwd in FDroidPopen
This commit is contained in:
parent
ee67e96aad
commit
2b0badd4c4
2 changed files with 16 additions and 17 deletions
|
@ -1910,7 +1910,7 @@ class PopenResult:
|
|||
stderr = ''
|
||||
stdout_apk = ''
|
||||
|
||||
def FDroidPopen(commands, cwd):
|
||||
def FDroidPopen(commands, cwd=None):
|
||||
"""
|
||||
Runs a command the FDroid way and returns return code and output
|
||||
|
||||
|
@ -1918,7 +1918,8 @@ def FDroidPopen(commands, cwd):
|
|||
"""
|
||||
|
||||
if options.verbose:
|
||||
print "Directory: %s" % cwd
|
||||
if cwd is not None:
|
||||
print "Directory: %s" % cwd
|
||||
print " > %s" % ' '.join(commands)
|
||||
|
||||
result = PopenResult()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue