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: The -t command line flag is now properly documented in the help output, it`s still a very special c… Created Jan. 25, 2013, 8:22 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
« build.py ('K') | « 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'
« build.py ('K') | « build.py ('k') | packagerChrome.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld