mirror of
https://git.yoctoproject.org/poky
synced 2026-07-27 19:37:10 +00:00
scripts/create-recipe: minor fixes
Fixed: - Remove PR. We don't need the "PR = r0" in the bb file. - Function length can't get the array's size correctly. Should use function scalar. (From OE-Core rev: efb9f9f1d9a85a22991f99277f77b87784762cbb) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1747,7 +1747,6 @@ sub write_bbfile
|
|||||||
print BBFILE "\"\n";
|
print BBFILE "\"\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
print BBFILE 'PR = "r0"' . "\n";
|
|
||||||
if ($python == 1) {
|
if ($python == 1) {
|
||||||
print BBFILE "PV = \"$pversion\"\n\n";
|
print BBFILE "PV = \"$pversion\"\n\n";
|
||||||
}
|
}
|
||||||
@@ -1865,7 +1864,7 @@ foreach (@tgzfiles) {
|
|||||||
#
|
#
|
||||||
|
|
||||||
my @sourcetars = <$orgdir/$outputdir/*\.tar\.bz2 $orgdir/$outputdir/*\.tar\.gz $orgdir/$outputdir/*\.zip>;
|
my @sourcetars = <$orgdir/$outputdir/*\.tar\.bz2 $orgdir/$outputdir/*\.tar\.gz $orgdir/$outputdir/*\.zip>;
|
||||||
if ( length @sourcetars == 0) {
|
if (scalar(@sourcetars) == 0) {
|
||||||
print "Can NOT find source tarball. Exiting...\n";
|
print "Can NOT find source tarball. Exiting...\n";
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user