diff options
author | Trevor Gamblin <trevor.gamblin@windriver.com> | 2020-05-12 17:51:31 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-05-12 15:58:06 -0700 |
commit | 0acb9d90bcd2dadce2102fc3b98635b942e2042b (patch) | |
tree | c84938ff57610d80ee683f7238517091d632d889 /meta-python/recipes-devtools/python/python-dbusmock/0002-Add-possibility-to-import-templates-from-packages.patch | |
parent | b80664c82b6c7c459c23b26dadbefe50c2ee779a (diff) | |
download | meta-openembedded-0acb9d90bcd2dadce2102fc3b98635b942e2042b.tar.gz |
python3-dbusmock: re-add recipe and fix patch path
Running the "non-gpl3" builder in my local autobuilder fails
almost immediately because python3-dbusmock is not available. It
appears that during the creation of meta-python2 and cleanup of
meta-python that the recipe for python3-dbusmock got removed
entirely, so I've re-added it, and renamed the corresponding
patch folder so that it can find the patches listed in the
recipe.
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-dbusmock/0002-Add-possibility-to-import-templates-from-packages.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python-dbusmock/0002-Add-possibility-to-import-templates-from-packages.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/meta-python/recipes-devtools/python/python-dbusmock/0002-Add-possibility-to-import-templates-from-packages.patch b/meta-python/recipes-devtools/python/python-dbusmock/0002-Add-possibility-to-import-templates-from-packages.patch deleted file mode 100644 index 06ab1f05e2..0000000000 --- a/meta-python/recipes-devtools/python/python-dbusmock/0002-Add-possibility-to-import-templates-from-packages.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | From 03bd5cb77c54033857810bb17562859eefa41221 Mon Sep 17 00:00:00 2001 | ||
2 | From: Simon Busch <simon.busch@lge.com> | ||
3 | Date: Wed, 9 Apr 2014 13:20:33 +0200 | ||
4 | Subject: [PATCH] Add possibility to import templates from packages | ||
5 | |||
6 | Does not have any unit tests yet. | ||
7 | |||
8 | Signed-off-by: Simon Busch <simon.busch@lge.com> | ||
9 | |||
10 | --- | ||
11 | dbusmock/mockobject.py | 3 +++ | ||
12 | 1 file changed, 3 insertions(+) | ||
13 | |||
14 | diff --git a/dbusmock/mockobject.py b/dbusmock/mockobject.py | ||
15 | index e4f130f..389df70 100644 | ||
16 | --- a/dbusmock/mockobject.py | ||
17 | +++ b/dbusmock/mockobject.py | ||
18 | @@ -46,6 +46,9 @@ def load_module(name): | ||
19 | exec(f.read(), mod.__dict__, mod.__dict__) | ||
20 | return mod | ||
21 | |||
22 | + if '.' in name: | ||
23 | + return importlib.import_module(name) | ||
24 | + | ||
25 | return importlib.import_module('dbusmock.templates.' + name) | ||
26 | |||
27 | |||