aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcreate-srpm3
1 files changed, 2 insertions, 1 deletions
diff --git a/create-srpm b/create-srpm
index b8004a2..fc235bf 100755
--- a/create-srpm
+++ b/create-srpm
@@ -65,8 +65,9 @@ class CmdIface:
upload_command.append(targetsrpms[0])
status, output = execcmd(" ".join(upload_command),
noerror=1)
+ os.unlink(targetsrpms[0])
if status != 0:
- raise CmdError, "Failed to upload %s:\n%s" % (targetsrpms[0], output)
+ raise CmdError, "Failed to upload %s:\n%s" % (packageurl, output)
return 1
def submit_targets(self):