tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: First pkg_dry milestone
On Wed, Apr 15, 2009 at 1:53 PM, Dieter Baron
<dillo%danbala.tuwien.ac.at@localhost> wrote:
> In article
> <b0459d5c0904140827w5cd69480g689d85af47214a47%mail.gmail.com@localhost>
> matthew wrote:
> : I've been using /(.+)-(.+)/ in perl to get pkgname=$1 and
> : pkgversion=$2. Also, a binary repository includes FILE_NAME (pkg_info
> : -aX doesn't seem to have it) in pkg_summary.gz, which should match
> : PKGNAME.tgz, but I don't know if that's always true.
>
> That should be /(.+)-([^-]+)/, since the package name may contain ``-''.
The first (.+) is greedy, so it will hit everything upto the last '-'.
Home |
Main Index |
Thread Index |
Old Index