summaryrefslogtreecommitdiffstats
path: root/scripts/create-recipe
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2014-09-02 05:47:42 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-03 10:09:03 (GMT)
commit60b8a574dcd939434f5313bddbb2cf1787a9319c (patch)
tree8d772c6bad631918797bdf5977ea2d1a32070d24 /scripts/create-recipe
parent45907b6d7fec3a929b51b7675962090dc627cd63 (diff)
downloadpoky-60b8a574dcd939434f5313bddbb2cf1787a9319c.tar.gz
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>
Diffstat (limited to 'scripts/create-recipe')
-rwxr-xr-xscripts/create-recipe3
1 files changed, 1 insertions, 2 deletions
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
1747 print BBFILE "\"\n"; 1747 print BBFILE "\"\n";
1748 } 1748 }
1749 1749
1750 print BBFILE 'PR = "r0"' . "\n";
1751 if ($python == 1) { 1750 if ($python == 1) {
1752 print BBFILE "PV = \"$pversion\"\n\n"; 1751 print BBFILE "PV = \"$pversion\"\n\n";
1753 } 1752 }
@@ -1865,7 +1864,7 @@ foreach (@tgzfiles) {
1865# 1864#
1866 1865
1867my @sourcetars = <$orgdir/$outputdir/*\.tar\.bz2 $orgdir/$outputdir/*\.tar\.gz $orgdir/$outputdir/*\.zip>; 1866my @sourcetars = <$orgdir/$outputdir/*\.tar\.bz2 $orgdir/$outputdir/*\.tar\.gz $orgdir/$outputdir/*\.zip>;
1868if ( length @sourcetars == 0) { 1867if (scalar(@sourcetars) == 0) {
1869 print "Can NOT find source tarball. Exiting...\n"; 1868 print "Can NOT find source tarball. Exiting...\n";
1870 exit (1); 1869 exit (1);
1871} 1870}