[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
> In article
> 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 '-'.
Main Index |
Thread Index |