[OE-core] [zeus 21/28] podfix: only alter normal files
Armin Kuster
akuster808 at gmail.com
Tue Jan 7 02:34:26 UTC 2020
From: Ross Burton <ross.burton at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
(cherry picked from commit 23d38b2ad6f7a39e5c1ffd092322942474935c33)
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
meta/classes/podfix.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/podfix.bbclass b/meta/classes/podfix.bbclass
index 54fff6a0a2..cc8210a27e 100644
--- a/meta/classes/podfix.bbclass
+++ b/meta/classes/podfix.bbclass
@@ -16,6 +16,9 @@ python pod_strip_version() {
for root, dirs, files in os.walk(d.expand("${D}${mandir}")):
for filename in files:
filename = os.path.join(root, filename)
+ if not os.path.isfile(filename):
+ continue
+
with opener(filename, "rb") as manfile:
manpage = manfile.read()
m = bad_re.search(manpage)
--
2.17.1
More information about the Openembedded-core
mailing list