[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Dragora-bug] Determining the name of a package
From: |
Mateus Pinto Rodrigues |
Subject: |
Re: [Dragora-bug] Determining the name of a package |
Date: |
Sat, 20 Jun 2015 21:25:30 -0300 |
On Sun, 21 Jun 2015 01:04:06 +0200
Lucas Sköldqvist <address@hidden> wrote:
> Hi,
>
> I wonder if there will be any rules or if there are any rules for
> determining the name of a package. A simple rule would be that the
> name of a package is everything in front of the first dash;
>
> jwm-2.3.0-x86_64-1.tlz
>
> would give the package name "jwm". But some packages contain a dash
> in the "name" already;
>
> claws-mail-3.11.1-x86_64-1.tlz
>
> and would give the name "claws".
>
> Are there any rules or does anyone have a proposal?
>
I remember using a regex in lua to separate the package name, but
basically everything before a number, sometimes the package name has a
number in itself, but the regex took care of it.
--
Best Regards.
Mateus Pinto Rodrigues (mprodrigues) [66679238]
free software enthusiast and developer
E462 69C4 73EF 91F9 25E2 8249 0F8B 6C54 6667 9238
pgp70Mt_7OFse.pgp
Description: OpenPGP digital signature