]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/patch.py: Fix the function comment
authorTomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Sat, 26 Jan 2019 11:36:10 +0000 (12:36 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Jan 2019 13:38:15 +0000 (13:38 +0000)
If it's not a patch the function returns nothing.

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/patch.py

index 07a40fc50e6c89e1f6aabede5c686c079eadd9ef..8c8e96a2dcac8c188de920131cd9b0a41fd420a8 100644 (file)
@@ -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))