Просмотр исходного кода

Fix typos introduced in previous commits.

PR:		246881
		246882
jclarke 4 лет назад
Родитель
Сommit
79bf1dad6c
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      portlint.pl

+ 3 - 2
portlint.pl

@@ -1974,7 +1974,8 @@ sub checkmakefile {
 	foreach my $sorted_macro (@macros_to_sort) {
 		while ($whole =~ /\n$sorted_macro.?=\s*([^#]+)(#.*)?\n/g) {
 			my $lineno = &linenumber($`);
-			my $srex = chomp($1);
+			my $srex = $1;
+			$srex =~ s/\s+$//;
 			my @smacros = sort(split / /, $srex);
 			if (join(" ", @smacros) ne $srex) {
 				&perror("WARN", $file, $lineno, "the arguments to $sorted_macro ".
@@ -3056,7 +3057,7 @@ DIST_SUBDIR EXTRACT_ONLY
 	# should be
 	#	DISTNAME=     package-1.0
 	#	EXTRACT_SUFX= .tgz
-	if ($makevar{USE_GITHUB} ne 'nodefault' && $makevar{USE_GITLUB} ne 'nodefault') {
+	if ($makevar{USE_GITHUB} ne 'nodefault' && $makevar{USE_GITHUB} ne 'nodefault') {
 		if ($distfiles =~ /^\S+$/ && $distfiles !~ /:[^\/:]+$/) {
 			$bogusdistfiles++;
 			print "OK: seen DISTFILES with single item, checking value.\n"