FreeBSD Port: portscout-0.8

Douglas Thrift douglas at douglasthrift.net
Sat Jul 31 23:37:17 UTC 2010


Hello,

I noticed today that portscout build and rebuild were not actually
updating the portscout database today and apparently hadn't been since
the upgrade from 0.7.4. I am using the restrict maintainer setting to
only get updates for my own ports and in investigating what was going on
I discovered that the INDEX checks for ports and maintainers were using
the wrong fields (I'm not sure if the INDEX format has changed since
portscout 0.8 was written). Anyway, I've attached a patch that fixes the
problem for me.

Thanks!
-- 
Douglas William Thrift
<douglas at douglasthrift.net>
<http://douglasthrift.net/>
-------------- next part --------------
--- Portscout/DataSrc/Ports.pm.old	2010-07-31 16:26:15.000000000 -0700
+++ Portscout/DataSrc/Ports.pm	2010-07-31 16:26:46.000000000 -0700
@@ -243,8 +243,8 @@
 			my (@fields, $maintainer, $port);
 
 			@fields = split /\|/;
-			$maintainer = $fields[6];
-			$port = $fields[10];
+			$maintainer = $fields[5];
+			$port = $fields[1];
 			$port =~ s/^(?:.*\/)?([^\/]+)\/([^\/]+)$/$1\/$2/;
 
 			$portsmaintok{$port} = $maintainer


More information about the freebsd-ports mailing list