aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2007-03-15 13:30:59 +0000
committerGustavo De Nardin <spuk@mandriva.org>2007-03-15 13:30:59 +0000
commitfa714df32fc64fecdf766bdc9ba801ddc07ce536 (patch)
treeb1d260c14e664f5b366bcbdaa05d033742c70808
parent215990c8e99fd698d3231aae2bd67ac914a21065 (diff)
downloadmgarepo-fa714df32fc64fecdf766bdc9ba801ddc07ce536.tar
mgarepo-fa714df32fc64fecdf766bdc9ba801ddc07ce536.tar.gz
mgarepo-fa714df32fc64fecdf766bdc9ba801ddc07ce536.tar.bz2
mgarepo-fa714df32fc64fecdf766bdc9ba801ddc07ce536.tar.xz
mgarepo-fa714df32fc64fecdf766bdc9ba801ddc07ce536.zip
warn about strange situation, when working around it, to possibly help
eventual future debugging
-rwxr-xr-xcreate-srpm2
1 files changed, 2 insertions, 0 deletions
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