From 791bd9621d4b77f820f1c47cd564eef7c95a1272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Sun, 23 Sep 2012 09:33:45 +0200 Subject: [PATCH] Tighten requirements on package names. Bug 174536. --- names.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/names.tex b/names.tex index decc8f4..447be9a 100644 --- a/names.tex +++ b/names.tex @@ -14,7 +14,8 @@ names will contain a hyphen. \subsection{Package Names} A package name may contain any of the characters [\t{A-Za-z0-9+\_-}]. It must not begin with a -hyphen or a plus sign, and must not end in a hyphen followed by one or more digits. +hyphen or a plus sign, and must not end in a hyphen followed by anything matching the version +syntax described in section~\ref{sec:version-spec}. \note A package name does not include the category. The term \i{qualified package name} is used where a \t{category/package} pair is meant. @@ -48,6 +49,7 @@ An EAPI name may contain any of the characters [\t{A-Za-z0-9+\_.-}]. It must not hyphen, a dot or a plus sign. \section{Version Specifications} +\label{sec:version-spec} The package manager must not impose fixed limits upon the number of version components. Package managers should indicate or reject any version that is invalid according to these rules. -- 1.7.12