[zeus,21/28] podfix: only alter normal files

Message ID dcbaf2a7a444f07ab516833f4ed4a2322828bddd.1578544698.git.akuster808@gmail.com
State New
Headers show
Series
  • Untitled series #26025
Related show

Commit Message

Armin Kuster Jan. 9, 2020, 4:49 a.m.
From: Ross Burton <ross.burton@intel.com>


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>

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

-- 
2.17.1

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

Patch

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)