summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorSamuel Stirtzel <s.stirtzel@googlemail.com>2011-09-13 13:30:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-30 16:38:01 +0000
commit7d30c2df8757e57e3ba0c7fd36ff05c648859f2c (patch)
treefa116fb55fdfe4d26e2ebd91f1245a7314409800 /meta/lib
parent90a4f95d3d4c2b30d8e2b1c8ffbd8b3fbc84436a (diff)
downloadpoky-7d30c2df8757e57e3ba0c7fd36ff05c648859f2c.tar.gz
patch.py: fixed message domain errors
The dynamic message domain was introduced by Richard Purdie with the following patch: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a6c48298b17e6a5844b3638b422fe226e3b67b89 (From OE-Core rev: 2383e06c8ed7c15aa148b9dbe40445e7095b6f57) (From OE-Core rev: d104367903478613123c64df8d2a5188775d1f9d) Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/patch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index 1406e1950c..9768be077f 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -358,7 +358,7 @@ class UserResolver(Resolver):
358 358
359 t = bb.data.getVar('T', self.patchset.d, 1) 359 t = bb.data.getVar('T', self.patchset.d, 1)
360 if not t: 360 if not t:
361 bb.msg.fatal(bb.msg.domain.Build, "T not set") 361 bb.msg.fatal("Build", "T not set")
362 bb.utils.mkdirhier(t) 362 bb.utils.mkdirhier(t)
363 import random 363 import random
364 rcfile = "%s/bashrc.%s.%s" % (t, str(os.getpid()), random.random()) 364 rcfile = "%s/bashrc.%s.%s" % (t, str(os.getpid()), random.random())
@@ -376,7 +376,7 @@ class UserResolver(Resolver):
376 os.environ['SHELLCMDS'] = "bash --rcfile " + rcfile 376 os.environ['SHELLCMDS'] = "bash --rcfile " + rcfile
377 rc = os.system(bb.data.getVar('TERMCMDRUN', self.patchset.d, 1)) 377 rc = os.system(bb.data.getVar('TERMCMDRUN', self.patchset.d, 1))
378 if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) != 0: 378 if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) != 0:
379 bb.msg.fatal(bb.msg.domain.Build, ("Cannot proceed with manual patch resolution - '%s' not found. " \ 379 bb.msg.fatal("Build", ("Cannot proceed with manual patch resolution - '%s' not found. " \
380 + "Check TERMCMDRUN variable.") % bb.data.getVar('TERMCMDRUN', self.patchset.d, 1)) 380 + "Check TERMCMDRUN variable.") % bb.data.getVar('TERMCMDRUN', self.patchset.d, 1))
381 381
382 # Construct a new PatchSet after the user's changes, compare the 382 # Construct a new PatchSet after the user's changes, compare the