summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChris Larson <kergoth@openedhand.com>2006-08-10 06:42:29 +0000
committerChris Larson <kergoth@openedhand.com>2006-08-10 06:42:29 +0000
commit2459137316afb0d47db53e66fff94dd1c5ffecb8 (patch)
treebaaf936aabf6b912520c083db291559e1dd07743 /scripts
parent2992d039663bc6e2cb894ea727f27de17b3b8b95 (diff)
downloadopenembedded-core-contrib-2459137316afb0d47db53e66fff94dd1c5ffecb8.tar.gz
Bugfix in the jhbuild emitter: wasn't properly emitting for templated packages.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@598 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/jhbuild/rewrite.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/jhbuild/rewrite.py b/scripts/jhbuild/rewrite.py
index ecd6444860..ef292763de 100755
--- a/scripts/jhbuild/rewrite.py
+++ b/scripts/jhbuild/rewrite.py
@@ -226,7 +226,7 @@ class Emitter(object):
f.close()
for key in bb.data.keys(package):
- fdata.replace('@@'+key+'@@', bb.data.getVar(key, package))
+ fdata = fdata.replace('@@'+key+'@@', bb.data.getVar(key, package))
else:
for key in bb.data.keys(package):
if key == '_handler':
@@ -266,10 +266,12 @@ def _test():
emitter = Emitter(filefunc)
for package in handlers.packages:
- template = os.path.join(emitter.filefunc(package), '.in')
+ template = emitter.filefunc(package) + '.in'
if os.path.exists(template):
+ print("%s exists, emitting based on template" % template)
emitter.write(package, template)
else:
+ print("%s does not exist, emitting non-templated" % template)
emitter.write(package)
if __name__ == "__main__":