diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-04 17:09:28 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-04 18:48:27 (EST) |
commit | b685ee1fe02a0f0c7d271d16843cb4282c0dc738 (patch) | |
tree | 84d4d619462b6ea769a6f7860af47eaa2990b964 /src/package | |
parent | 9ab3a2c1745a3271820d32842d991ea44bbb9c18 (diff) |
package_get_name_and_version(): Also get dist
Diffstat (limited to 'src/package')
-rw-r--r-- | src/package/2.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/package/2.sh b/src/package/2.sh index 18e5a85..98c5390 100644 --- a/src/package/2.sh +++ b/src/package/2.sh @@ -20,10 +20,10 @@ _package_2_build_deps= -_package_2_get_name_and_version() +package_2_get_name_version_dist() { # The first line is all we need to parse. - sed '1{ s/^\([^ ][^ ]*\) (\([^)][^)]*\)).*$/\1 \2/; q; };' \ + sed '1{ s/^\([^ ][^ ]*\) (\([^)][^)]*\)) \(.*\)$/\1 \2 \3/; q; };' \ "${package_dir}/changelog" return 0 |