Browse Source

Target show-indexed is not available in 6.4

Markus Hennecke 5 years ago
parent
commit
955c9ee91d
1 changed files with 6 additions and 1 deletions
  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 |")