chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d192b40
)
Don't crash if an apk got built without source (e.g. with --no-tarball)
author
Daniel Martí
<mvdan@mvdan.cc>
Mon, 17 Feb 2014 15:51:42 +0000
(16:51 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Mon, 17 Feb 2014 15:51:42 +0000
(16:51 +0100)
fdroidserver/publish.py
patch
|
blob
|
history
diff --git
a/fdroidserver/publish.py
b/fdroidserver/publish.py
index c6dadea59a8a78b03e92a9cc1eaefbfb20468a4c..1b72e6037919ac93e2f6010d2fdeb78a32c34e6a 100644
(file)
--- 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)