[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Dragora-bug] Determining the name of a package
From: |
Matias A. Fonzo |
Subject: |
Re: [Dragora-bug] Determining the name of a package |
Date: |
Sat, 20 Jun 2015 23:16:33 -0300 |
El Sun, 21 Jun 2015 01:04:06 +0200
Lucas Sköldqvist <address@hidden> escribió:
>
> 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
Yes, or like:
xorg-server-xephyr-1.11.4-x86_64-1
> and would give the name "claws".
>
> Are there any rules or does anyone have a proposal?
>
The easiest way is remove the last three segments "-",
from right to left (range):
-version-arch-build