From 1493d3f9467e818ce0b7131d74b1f4258f8bb221 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sun, 12 Nov 2006 11:25:43 +0000 Subject: always unlink the src.rpm after running the upload command --- create-srpm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'create-srpm') 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): -- cgit v1.2.1