Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: tools/dartium/archive.py

Issue 292743008: Clean up old zip files when archiving, more accurately. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add executable permission to new python scripts Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/dartium/dartium_bot_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dartium/archive.py
diff --git a/tools/dartium/archive.py b/tools/dartium/archive.py
index b5f1e33b1c1788a864a220a6945765754a388537..cb00942d448886db381914850124cec3a6c7880e 100755
--- a/tools/dartium/archive.py
+++ b/tools/dartium/archive.py
@@ -130,7 +130,8 @@ def StageAndZip(fileList, target):
if os.path.exists(stageDir):
shutil.rmtree(stageDir)
os.mkdir(stageDir)
- oldFiles = glob.glob(target.split('-')[0] + '*.zip')
+ revision = target.split('-')[-1]
+ oldFiles = glob.glob(target.replace(revision, '*.zip')
for oldFile in oldFiles:
os.remove(oldFile)
« no previous file with comments | « no previous file | tools/dartium/dartium_bot_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698