Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison tests/ports.t @ 792:954d3607e87d
ports.subr: Parse a (local) index file for a package version
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 30 Oct 2024 00:48:32 +0100 |
| parents | 1ffb4e15151d |
| children | 2310764e5c4e |
comparison
equal
deleted
inserted
replaced
| 791:1ffb4e15151d | 792:954d3607e87d |
|---|---|
| 84 $ export VERSION_SOURCE=P | 84 $ export VERSION_SOURCE=P |
| 85 $ get_local_index_file | 85 $ get_local_index_file |
| 86 /home/fag/ports/INDEX-[0-9]+ \(no-eol\) (re) | 86 /home/fag/ports/INDEX-[0-9]+ \(no-eol\) (re) |
| 87 $ unset VERSION_SOURCE | 87 $ unset VERSION_SOURCE |
| 88 | 88 |
| 89 $ _pkgversion="$(parse_index_file_for_package_version "$(get_local_index_file)" 'pkg')" | |
| 90 $ [ -n "${_pkgversion}" ] | |
| 91 $ printf '%s' "${_pkgversion}" | |
| 92 \d+\.\d+(\.\d+) \(no-eol\) (re) | |
| 93 | |
| 89 | 94 |
| 90 Repositories | 95 Repositories |
| 91 ============ | 96 ============ |
| 92 | 97 |
| 93 Assume that FreeBSD is always configured and enabled | 98 Assume that FreeBSD is always configured and enabled |
