On Thu, Jun 07, 2007 at 02:04:08PM -0400, Doug Goldstein wrote:
> > Thing is: if you see sys-fs/ntfs-3g, is that an atom or a CPV? You
> > don't know unless you actually check the tree.
> I thought that was the whole point of =. That identifies CPV instead of
> an atom.
If you look the DEPEND/RDEPEND portion of ebuilds,
there are a lot of deps just declared as CAT/PN, with no version
numbering.

I think this might be a clearer version of what you are trying to say.
1. Given a string S that is 'XXXXXXXXXXXXX' 
2. If S starts with an operator (=,>,>=,<=,<), then S MUST have a
   version number on the end. S is of the form: CAT/PN-PV(-PR), where
   both CAT and PN may contain a -. PR is optional, and must be of the
   form /^-r[[:digit:]]+$/
3. If S does not start with an operator, then S is of the form:
   CAT/PN, where CAT and PN may contain a -.
4. If the first character was a !, then remember that, strip the ! from
   S, and repeat from 2.
5. If you reach this point, you have something that is not valid.

This means if somebody specified:
sys-fs/ntfs-3g-1.516
The CAT is 'sys-fs'
and the PN is 'ntfs-3g-1.516'
which does not exist.

I can't see any logical problems with the above. It probably makes
things a lot easier in many places.

-- 
Robin Hugh Johnson
Gentoo Linux Developer & Council Member
E-Mail     : [EMAIL PROTECTED]
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

Attachment: pgpPl6V57wdcg.pgp
Description: PGP signature

Reply via email to