From b685ee1fe02a0f0c7d271d16843cb4282c0dc738 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 04 Jan 2021 17:09:28 -0500 Subject: package_get_name_and_version(): Also get dist --- (limited to 'src/package') 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 -- cgit v0.9.1