tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compound depends



On Mon, Oct 24, 2011 at 10:24:25PM +0900, OBATA Akio wrote:
 > How about following?
 > 
 > Index: mk/pkgformat/pkg/reduce-depends.awk
 > ===================================================================
 > RCS file: /cvsroot/pkgsrc/mk/pkgformat/pkg/reduce-depends.awk,v
 > retrieving revision 1.1
 > diff -u -r1.1 reduce-depends.awk
 > --- mk/pkgformat/pkg/reduce-depends.awk 15 Oct 2011 00:23:09 -0000      1.1
 > +++ mk/pkgformat/pkg/reduce-depends.awk 24 Oct 2011 13:22:26 -0000
 > @@ -116,7 +116,7 @@
 >                 for (d = 1; d <= D; d++) {
 >                         dep = depends[pkgpath, d]
 >                         if (dep ~ /[{]/ || \
 > -                           dep ~ />=[0-9][0-9\.]*<[0-9]+/ || \
 > +                           dep ~ />=[0-9][0-9\.]*(nb[0-9]+)?<[0-9]+/ || \
 >                             dep !~ />=[0-9]+/)
 >                         {
 >                                 reduced[N++] = dep ":" pkgsrcdirs[pkgpath]

Will that work on versions like "3.3beta6"? I don't think so...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index