From 70fc0d7eca6cbbcb5f8a003910c5cb00543dea5e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 23 Dec 2014 18:24:26 +0000 Subject: [PATCH] Check for README at the start of the basename git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@78304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index e5503001..db7a71b1 100755 --- a/build.py +++ b/build.py @@ -592,9 +592,10 @@ def uploadPackage(fileName, KEEP=50): # leave the last KEEP builds, including this new one, on the server for name in allFiles[:-KEEP]: - if not name.startswith('README'): - msg("Deleting %s" % name) - ftp.delete(name) + if os.path.basename(name).startswith('README'): + continue + msg("Deleting %s" % name) + ftp.delete(name) ftp.close() msg("Upload complete!")