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

Unified Diff: packager.py

Issue 9259023: Use platform-dependent metadata files to allow multiple builds from the same repository (Closed)
Patch Set: Created Jan. 25, 2013, 7:10 a.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 | « build.py ('k') | packagerChrome.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packager.py
===================================================================
--- a/packager.py
+++ b/packager.py
@@ -22,21 +22,21 @@ import sys, os, re, codecs, subprocess,
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 getMetadataPath(baseDir):
- return os.path.join(baseDir, 'metadata')
+def getMetadataPath(baseDir, type):
+ return os.path.join(baseDir, 'metadata.%s' % type)
-def readMetadata(baseDir):
- return ChainedConfigParser(getMetadataPath(baseDir))
+def readMetadata(baseDir, type):
+ return ChainedConfigParser(getMetadataPath(baseDir, type))
def getBuildNum(baseDir):
try:
(result, dummy) = subprocess.Popen(['hg', 'id', '-R', baseDir, '-n'], stdout=subprocess.PIPE).communicate()
return re.sub(r'\D', '', result)
except Exception:
return '0'
« no previous file with comments | « build.py ('k') | packagerChrome.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld