]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/oe/patch.py: Fix applying a directory as a patch
authorTomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Fri, 25 Jan 2019 19:55:33 +0000 (20:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 27 Jan 2019 13:05:17 +0000 (13:05 +0000)
commitb73dc9f6f26f6eea6f4332a4b027e3ace5b5d720
treed5241c60912faea5981b1765610acece8d5714a7
parentad38a64a26fbd37cb1a452beae7e2316409729a0
lib/oe/patch.py: Fix applying a directory as a patch

If a SRC_URI content ends with '.patch' bitbake is
trying to apply it as it's a patch file.

It causes that if we use git repository for 'patch' package
the bare clone is extracted to a directory
(i.e. build/downloads/git2/git.mirror.org.patch/) which is considered
to be a patch file, so patch.py tries to apply that directory as a patch
which ends up with a failure.

(From OE-Core rev: 1e38d74a2ca7638b1f54e2bb5617903c2683e484)

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