mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-25 07:47:51 -05:00
Don't crash if an apk got built without source (e.g. with --no-tarball)
This commit is contained in:
@@ -152,8 +152,9 @@ def main():
|
||||
|
||||
# Move the source tarball into the output directory...
|
||||
tarfilename = apkfilename[:-4] + '_src.tar.gz'
|
||||
shutil.move(os.path.join(unsigned_dir, tarfilename),
|
||||
os.path.join(output_dir, tarfilename))
|
||||
tarfile = os.path.join(unsigned_dir, tarfilename)
|
||||
if os.path.exists(tarfile):
|
||||
shutil.move(tarfile, os.path.join(output_dir, tarfilename))
|
||||
|
||||
logging.info('Published ' + apkfilename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user