Skip to contentSkip to conversation

scripts/create-recipe: minor fixes

PATCH New Yi Zhao 1 participant 1 message Sep 2, 2014

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 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.

---
 scripts/create-recipe |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
scripts/create-recipe +1 -2
index b192990..e4bc4c3 100755
@@ -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);
 }
Signature · 1 line
1.7.9.5