lib/oe/patch.py: Fix the function comment

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

(From OE-Core rev: cc4a75c7ebf24fb3b7b35552a090e8844985e45e)

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tomasz Dziendzielski
2019-01-26 12:36:10 +01:00
committed by Richard Purdie
parent 083817577d
commit ad38a64a26

View 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))