aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2006-11-12 11:25:43 +0000
committerOlivier Blin <oblin@mandriva.com>2006-11-12 11:25:43 +0000
commit1493d3f9467e818ce0b7131d74b1f4258f8bb221 (patch)
tree77f16a00ca84ec80f82f4028982e5a788e5ce653
parentcc310ea0eda3a0b6e80a16c3e812617ea165b170 (diff)
downloadmgarepo-1493d3f9467e818ce0b7131d74b1f4258f8bb221.tar
mgarepo-1493d3f9467e818ce0b7131d74b1f4258f8bb221.tar.gz
mgarepo-1493d3f9467e818ce0b7131d74b1f4258f8bb221.tar.bz2
mgarepo-1493d3f9467e818ce0b7131d74b1f4258f8bb221.tar.xz
mgarepo-1493d3f9467e818ce0b7131d74b1f4258f8bb221.zip
always unlink the src.rpm after running the upload command
-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):