podfix: only alter normal files

(From OE-Core rev: 23d38b2ad6f7a39e5c1ffd092322942474935c33)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton authored and Richard Purdie committed 2019-12-16 23:32:11 +00:00
1 parent a96403c625
commit f54356c3fd
1 file changed
+3
+3
View File
@@ -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)