diff options
| author | Awais Belal <Awais_Belal@mentor.com> | 2021-03-30 12:29:21 +0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-05 15:29:02 +0100 |
| commit | 6a0bac1fa9971bae8e0af405dc72aa72be511bd3 (patch) | |
| tree | c30750943818f0e4b10f6d1a63ee288cde0be7eb | |
| parent | c4f54b4638abd8d293b6f6f9dc7e24a35fc83eac (diff) | |
| download | poky-6a0bac1fa9971bae8e0af405dc72aa72be511bd3.tar.gz | |
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 <awais_belal@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/perl/perl_5.32.1.bb | 3 |
1 files changed, 3 insertions, 0 deletions
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 () { | |||
| 320 | # Read the pre-generated dependency file, and use it to set module dependecies | 320 | # Read the pre-generated dependency file, and use it to set module dependecies |
| 321 | for line in open(d.expand("${WORKDIR}") + '/perl-rdepends.txt').readlines(): | 321 | for line in open(d.expand("${WORKDIR}") + '/perl-rdepends.txt').readlines(): |
| 322 | splitline = line.split() | 322 | splitline = line.split() |
| 323 | # Filter empty lines and comments | ||
| 324 | if len(splitline) == 0 or splitline[0].startswith("#"): | ||
| 325 | continue | ||
| 323 | if bb.data.inherits_class('native', d): | 326 | if bb.data.inherits_class('native', d): |
| 324 | module = splitline[0] + '-native' | 327 | module = splitline[0] + '-native' |
| 325 | depends = "perl-native" | 328 | depends = "perl-native" |
