Problem with a portlint change

Doug Barton DougB at FreeBSD.org
Thu Jan 1 17:45:39 PST 2004


Marcus,

In versions 1.4[168] you added/modified the following code in portlint:

         if ($committer && $makevar{'.CURDIR'} =~ m'/([^/]+)/[^/]+/?$') {
                 if ($cat[0] ne $1 && $makevar{PKGCATEGORY} ne $1 ) {
                         &perror("FATAL: $file: category \"$1\" must be 
listed first");
                 }
         }


That creates a problem for those of us who check out individual ports 
directories in $HOME, rather than checking out ports/<category>/<port>. 
One solution to this problem might be to change the regex to:

m'ports/([^/]+)/[^/]+/?$'

but I'm sure there are others. It would be nice to find a solution to 
this though, since previous versions of portlint didn't complain about 
this, and I really like to keep my ports 'portlint clean' whenever 
possible.

Doug

-- 

     This .signature sanitized for your protection




More information about the freebsd-ports mailing list