← Back to team overview

ubuntu-appstore-developers team mailing list archive

Re: Formal definition of App ID

 

On 08/14/2013 02:42 PM, David Owen wrote:
> On 08/12/2013 02:27 PM, Jamie Strandboge wrote:
>> On 08/12/2013 02:59 PM, Jamie Strandboge wrote:
>>> "... a name that consists only of lower case letters (a-z), upper case letters
>>> (A-Z), digits (0-9), plus (+) and minus (-) signs, periods (.), colons (:),
>>> underscores (_) and tildes (~) (essentially a combination of the allowed
>>> characters for Ubuntu package names and versions, plus underscores)"
>>>
>>> Click uses deb files and dpkg underneath, so many of the rules come from
>>> Debian/Ubuntu policy. Ie:
>>>  * 'pkg' is any legal character for a Debian package[2]
>>>  * 'version' is any legal character in a Debian version[3]
>>>  * 'app' doesn't have an any Debian policy surrounding it that I am aware of,
>>>    but we've defined it elsewhere as anything in the set of characters in
>>>    "profile name" (above) except '_' since it is a delimiter
>>>
>> Whoops, 'app' should include [A-Z] as well.
> 
> What do you mean?  That the exclusion of '_' from $app should also
> include [A-Z], to make the entire exclusion [A-Z_]?
> 
> -David

When considering:
$pkgname_$app_$version

pkgname follows Debian source package rules
app follows Debian source package rules plus [A-Z]
version follows Debian version rules

'_' is not allowed in any of pkgname, app or version because it is the delimiter
for APPID. Therefore, APPID is the union of all characters allowed in pkgname,
app and version plus '_'.

-- 
Jamie Strandboge                 http://www.ubuntu.com/

Attachment: signature.asc
Description: OpenPGP digital signature


References