diff --git a/fdroidserver/publish.py b/fdroidserver/publish.py index c6dadea5..1b72e603 100644 --- a/fdroidserver/publish.py +++ b/fdroidserver/publish.py @@ -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)