From 215990c8e99fd698d3231aae2bd67ac914a21065 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Wed, 14 Mar 2007 22:15:00 +0000 Subject: Make create-srpm check if the temporary package still exists before trying to remove it. --- create-srpm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1