summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2014-09-02 13:47:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-03 11:09:03 +0100
commit96ac3c00a5dc9491966ba433e758fadd7bca3efa (patch)
tree574c5224a208766d71746a126ffe3e177abfd2da /scripts
parent7acf7177de3a9c71e2f76ee05d4c5d27e5aec79b (diff)
downloadtizen-distro-96ac3c00a5dc9491966ba433e758fadd7bca3efa.tar.gz
tizen-distro-96ac3c00a5dc9491966ba433e758fadd7bca3efa.tar.bz2
tizen-distro-96ac3c00a5dc9491966ba433e758fadd7bca3efa.zip
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')
-rwxr-xr-xscripts/create-recipe3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/create-recipe b/scripts/create-recipe
index b192990080..e4bc4c322b 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);
}