Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: packager.py

Issue 4702306650030080: Issue 2121 - Release automation fails to put generated packages into the right directory (Closed)
Patch Set: Created March 10, 2015, 7:17 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | packagerChrome.py » ('j') | packagerChrome.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packager.py
===================================================================
--- a/packager.py
+++ b/packager.py
@@ -8,18 +8,18 @@
# packagers are implemented in packagerGecko and packagerChrome.
import sys, os, re, codecs, subprocess, json, zipfile
from StringIO import StringIO
from chainedconfigparser import ChainedConfigParser
import buildtools
-def getDefaultFileName(baseDir, metadata, version, ext):
- return os.path.join(baseDir, '%s-%s.%s' % (metadata.get('general', 'basename'), version, ext))
+def getDefaultFileName(metadata, version, ext):
+ return '%s-%s.%s' % (metadata.get('general', 'basename'), version, ext)
def getMetadataPath(baseDir, type):
return os.path.join(baseDir, 'metadata.%s' % type)
def readMetadata(baseDir, type):
return ChainedConfigParser(getMetadataPath(baseDir, type))
def getBuildNum(baseDir):
« no previous file with comments | « no previous file | packagerChrome.py » ('j') | packagerChrome.py » ('J')

Powered by Google App Engine
This is Rietveld