summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-12-16 11:24:02 +0000
committerArmin Kuster <akuster808@gmail.com>2020-01-08 20:29:28 -0800
commitdcbaf2a7a444f07ab516833f4ed4a2322828bddd (patch)
tree30bd23c1a47cd1d6ca55a560dcd86db5add80679
parent3534f17752eccdd62eac8809d7842e9d25fa770a (diff)
downloadopenembedded-core-dcbaf2a7a444f07ab516833f4ed4a2322828bddd.tar.gz
podfix: only alter normal files
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 23d38b2ad6f7a39e5c1ffd092322942474935c33) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta/classes/podfix.bbclass3
1 files changed, 3 insertions, 0 deletions
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)