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.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
            print BBFILE "\"\n";
        }
 
-       print BBFILE 'PR = "r0"' . "\n";
        if ($python == 1) {
            print BBFILE "PV = \"$pversion\"\n\n";
        }
 #
 
 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);
 }