mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
Don't crash if an apk got built without source (e.g. with --no-tarball)
This commit is contained in:
parent
d192b40687
commit
b752aff8ed
1 changed files with 3 additions and 2 deletions
|
|
@ -152,8 +152,9 @@ def main():
|
||||||
|
|
||||||
# Move the source tarball into the output directory...
|
# Move the source tarball into the output directory...
|
||||||
tarfilename = apkfilename[:-4] + '_src.tar.gz'
|
tarfilename = apkfilename[:-4] + '_src.tar.gz'
|
||||||
shutil.move(os.path.join(unsigned_dir, tarfilename),
|
tarfile = os.path.join(unsigned_dir, tarfilename)
|
||||||
os.path.join(output_dir, tarfilename))
|
if os.path.exists(tarfile):
|
||||||
|
shutil.move(tarfile, os.path.join(output_dir, tarfilename))
|
||||||
|
|
||||||
logging.info('Published ' + apkfilename)
|
logging.info('Published ' + apkfilename)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue