aboutsummaryrefslogtreecommitdiffstats
path: root/create-srpm
diff options
context:
space:
mode:
Diffstat (limited to 'create-srpm')
-rwxr-xr-xcreate-srpm3
1 files changed, 2 insertions, 1 deletions
diff --git a/create-srpm b/create-srpm
index 5223d45..83a4153 100755
--- a/create-srpm
+++ b/create-srpm
@@ -66,7 +66,8 @@ class CmdIface:
upload_command.append(targetsrpms[0])
status, output = execcmd(" ".join(upload_command),
noerror=1)
- os.unlink(targetsrpms[0])
+ if os.path.isfile(targetsrpms[0]):
+ os.unlink(targetsrpms[0])
if status != 0:
raise CmdError, "Failed to upload %s:\n%s" % (packageurl, output)
return 1