]> code.ossystems Code Review - openembedded-core.git/commitdiff
perl: allow empty lines and comments in perl-rdepends.txt
authorAwais Belal <Awais_Belal@mentor.com>
Tue, 30 Mar 2021 07:29:21 +0000 (12:29 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 Apr 2021 14:27:43 +0000 (15:27 +0100)
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.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl/perl_5.32.1.bb

index 1fafc0a8c91e901fb9d0a9327200d1995de0b371..65db6da2b5f7faa8abbd1b59be5f15de89c05ae0 100644 (file)
@@ -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"