[OE-core] [PATCH 1/1] lib/oe/patch.py: Fix the function comment

Tomasz Dziendzielski tomasz.dziendzielski at gmail.com
Sat Jan 26 11:36:10 UTC 2019


If it's not a patch the function returns nothing.

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski at gmail.com>
---
 meta/lib/oe/patch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index 07a40fc50e..8c8e96a2dc 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -790,7 +790,7 @@ class UserResolver(Resolver):


 def patch_path(url, fetch, workdir, expand=True):
-    """Return the local path of a patch, or None if this isn't a patch"""
+    """Return the local path of a patch, or return nothing if this
isn't a patch"""

     local = fetch.localpath(url)
     base, ext = os.path.splitext(os.path.basename(local))
-- 
2.20.1


More information about the Openembedded-core mailing list