Pārlūkot izejas kodu

Target show-indexed is not available in 6.4

Markus Hennecke 5 gadi atpakaļ
vecāks
revīzija
955c9ee91d
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      autoupdate.pl

+ 6 - 1
autoupdate.pl

@@ -244,7 +244,12 @@ sub get_ports_version {
 	my $port = shift;
 
 	chdir "$port" || return undef;
-	my $cmd = 'make show-indexed=FULLPKGNAME';
+	my $show = 'show';
+	my @uname = POSIX::uname();
+	if ($uname[2] > 6.4) {
+            $show .= '-indexed';
+	}
+	my $cmd = "make $show=FULLPKGNAME";
 	my $pkgname = '';
 
 	open(my $in, "$cmd 2>&1 |")