diff options
-rw-r--r-- | meta/lib/oe/patch.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 07a40fc50e6..3d0b7d72895 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py @@ -793,6 +793,8 @@ def patch_path(url, fetch, workdir, expand=True): """Return the local path of a patch, or None if this isn't a patch""" local = fetch.localpath(url) + if os.path.isdir(local): + return base, ext = os.path.splitext(os.path.basename(local)) if ext in ('.gz', '.bz2', '.xz', '.Z'): if expand: |