From 6a0bac1fa9971bae8e0af405dc72aa72be511bd3 Mon Sep 17 00:00:00 2001 From: Awais Belal Date: Tue, 30 Mar 2021 12:29:21 +0500 Subject: perl: allow empty lines and comments in perl-rdepends.txt With this change the rdepends file can now have empty lines and comment lines. The perl-rdepends.txt generation will be fixed with further commits to leverage this change. (From OE-Core rev: 2256afc652d69e720a31f7c5858d5ab32b0065f2) Signed-off-by: Awais Belal Signed-off-by: Richard Purdie --- meta/recipes-devtools/perl/perl_5.32.1.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta') diff --git a/meta/recipes-devtools/perl/perl_5.32.1.bb b/meta/recipes-devtools/perl/perl_5.32.1.bb index 1fafc0a8c9..65db6da2b5 100644 --- a/meta/recipes-devtools/perl/perl_5.32.1.bb +++ b/meta/recipes-devtools/perl/perl_5.32.1.bb @@ -320,6 +320,9 @@ python split_perl_packages () { # Read the pre-generated dependency file, and use it to set module dependecies for line in open(d.expand("${WORKDIR}") + '/perl-rdepends.txt').readlines(): splitline = line.split() + # Filter empty lines and comments + if len(splitline) == 0 or splitline[0].startswith("#"): + continue if bb.data.inherits_class('native', d): module = splitline[0] + '-native' depends = "perl-native" -- cgit v1.2.3-54-g00ecf