From fa714df32fc64fecdf766bdc9ba801ddc07ce536 Mon Sep 17 00:00:00 2001 From: Gustavo De Nardin Date: Thu, 15 Mar 2007 13:30:59 +0000 Subject: warn about strange situation, when working around it, to possibly help eventual future debugging --- create-srpm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/create-srpm b/create-srpm index 83a4153..820c81f 100755 --- a/create-srpm +++ b/create-srpm @@ -68,6 +68,8 @@ class CmdIface: noerror=1) if os.path.isfile(targetsrpms[0]): os.unlink(targetsrpms[0]) + else: + sys.stderr.write("warning: upload ok; temp file '%s' removed unexpectedly\n" % (targetsrpms[0])) if status != 0: raise CmdError, "Failed to upload %s:\n%s" % (packageurl, output) return 1 -- cgit v1.2.1