diff mbox series

podfix: only alter normal files

Message ID 20191216112402.2538-1-ross.burton@intel.com
State Accepted
Commit 23d38b2ad6f7a39e5c1ffd092322942474935c33
Headers show
Series podfix: only alter normal files | expand

Commit Message

Ross Burton Dec. 16, 2019, 11:24 a.m. UTC
Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/classes/podfix.bbclass | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.20.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/classes/podfix.bbclass b/meta/classes/podfix.bbclass
index 54fff6a0a23..cc8210a27e2 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)