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

out-of-date was renamed to pkg_outdated in OpenBSD 6.4

Markus Hennecke 6 лет назад
Родитель
Сommit
c82a36583a
1 измененных файлов с 8 добавлено и 7 удалено
  1. 8 7
      autoupdate.pl

+ 8 - 7
autoupdate.pl

@@ -302,10 +302,10 @@ sub read_update_package_list {
 	my $input = shift;
 	my ($in, @package_list, $out);
 
-	# Save the output from out-of-date in a log file
+	# Save the output from pkg_outdated in a log file
 	if (defined $logdir && not defined $input) {
-		open($out, '>', "$logdir/out-of-date");
-		print STDERR "Warning: Unable to open log for out-of-date\n"
+		open($out, '>', "$logdir/pkg_outdated");
+		print STDERR "Warning: Unable to open log for pkg_outdated\n"
 		    if (not defined $out);
 	}
 
@@ -319,7 +319,7 @@ sub read_update_package_list {
 			$ood_path .= 'build';
 		}
 		my $cmd = "env PORTSDIR=\"$portsdir\" "
-		    . "\"$portsdir/$ood_path/out-of-date\" ";
+		    . "\"$portsdir/$ood_path/pkg_outdated\" ";
 		unless (open($in, $cmd . '2>/dev/null |')) {
 			print STDERR "Unable to execute $cmd\n";
 			exit 1;
@@ -345,7 +345,7 @@ sub read_update_package_list {
 		my $pkg = $_;
 		$pkg =~ s/ +#.*$//g;
 		if ($_ =~ m/#\s+->/) {
-			# Ignore ports that show up every time in out-of-date
+			# Ignore ports that show up every time in pkg_outdated
 			print STDERR 'Ignoring ' . $pkg . "\n";
 			next;
 		}
@@ -762,7 +762,8 @@ sub usage {
 	print STDERR "USAGE: autoupdate.pl [options]\n";
 	print STDERR "OPTIONS:\n"
 	    . " -v|--verbose\t\tSet verbosity level (1..5)\n"
-	    . " -f|--outofdate\t\tUse file as output from the out-of-date script\n"
+	    . " -f|--outdated\t\tUse file as output from the "
+	    . "pkg_outdated script\n"
 	    . " -j|--jobs\t\tTry to build packages in parallel\n"
 	    . " \t\t\tIf the filename is '-' the input will be\n"
 	    . " \t\t\tread from stdin\n"
@@ -776,7 +777,7 @@ $SIG{CHLD} = 'DEFAULT';
 
 # Read the command line params
 my $result = GetOptions("v|verbose=i" => \$verbose,
-			"f|outofdate=s" => \$out_of_date,
+			"f|outdated=s" => \$out_of_date,
 			"j|jobs=i" => \$num_jobs,
 			"h|help" => \$show_help);