From: Yi Zhao Date: Tue, 2 Sep 2014 05:47:42 +0000 (+0800) Subject: scripts/create-recipe: minor fixes X-Git-Tag: rev_ivi_2015_02_04~6736 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96ac3c00a5dc9491966ba433e758fadd7bca3efa;p=scm%2Fbb%2Ftizen-distro.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/create-recipe b/scripts/create-recipe index b192990..e4bc4c3 100755 --- a/scripts/create-recipe +++ b/scripts/create-recipe @@ -1747,7 +1747,6 @@ sub write_bbfile print BBFILE "\"\n"; } - print BBFILE 'PR = "r0"' . "\n"; if ($python == 1) { 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>; -if ( length @sourcetars == 0) { +if (scalar(@sourcetars) == 0) { print "Can NOT find source tarball. Exiting...\n"; exit (1); }