Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-pms] [PATCH] Disallow starting category, package and slot names with +.
Date: Wed, 22 Jun 2011 12:53:47
Message-Id: 1308747227-14026-1-git-send-email-mgorny@gentoo.org
1 Currently, PMS disallows starting those with a hyphen or a dot. The plus
2 sign should be added to those restrictions for consistency.
3 ---
4 names.tex | 6 +++---
5 1 files changed, 3 insertions(+), 3 deletions(-)
6
7 diff --git a/names.tex b/names.tex
8 index 53fed20..67054c1 100644
9 --- a/names.tex
10 +++ b/names.tex
11 @@ -7,14 +7,14 @@ name. A package manager should indicate or reject any name that is invalid accor
12
13 \subsection{Category Names}
14 A category name may contain any of the characters [\t{A-Za-z0-9+\_.-}]. It must not begin with
15 -a hyphen or a dot.
16 +a hyphen, a dot or a plus sign.
17
18 \note A hyphen is \e{not} required because of the \t{virtual} category. Usually, however, category
19 names will contain a hyphen.
20
21 \subsection{Package Names}
22 A package name may contain any of the characters [\t{A-Za-z0-9+\_-}]. It must not begin with a
23 -hyphen, and must not end in a hyphen followed by one or more digits.
24 +hyphen or a plus sign, and must not end in a hyphen followed by one or more digits.
25
26 \note A package name does not include the category. The term \i{qualified package name} is used
27 where a \t{category/package} pair is meant.
28 @@ -22,7 +22,7 @@ where a \t{category/package} pair is meant.
29 \subsection{Slot Names}
30 \label{sec:slot-names}
31 A slot name may contain any of the characters [\t{A-Za-z0-9+\_.-}]. It must not begin with a
32 -hyphen or a dot.
33 +hyphen, a dot or a plus sign.
34
35 \subsection{USE Flag Names}
36 A USE flag name may contain any of the characters [\t{A-Za-z0-9+\_@-}]. It must begin with an
37 --
38 1.7.5.3