Ver código fonte

Target show-indexed is not available in 6.4

Markus Hennecke 5 anos atrás
pai
commit
955c9ee91d
1 arquivos alterados com 6 adições e 1 exclusões
  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 |")