Verified Commit 2c3caac8 authored by Adrian Schollmeyer's avatar Adrian Schollmeyer
Browse files

upload_dep_archives: Fix PN/PV separation regex

The previous regex failed on version numbers with components having more
than one digit.
parent 57a75ea2
Pipeline #2733 passed with stages
in 4 minutes and 57 seconds
......@@ -14,7 +14,7 @@ die() {
}
extract_pn_pv() {
local separated_pn_pv="$(echo ${1} | sed 's/^\(.*\)-\(\([[:digit:]].\)*[[:digit:]]\)-deps.tar.*$/\1 \2/g')"
local separated_pn_pv="$(echo ${1} | sed 's/^\(.*\)-\(\([[:digit:]][[:digit:]]*\.\)*[[:digit:]][[:digit:]]*\)-deps.tar.*$/\1 \2/g')"
PN="$(echo ${separated_pn_pv} | awk '{print $1;}')"
PV="$(echo ${separated_pn_pv} | awk '{print $2;}')"
P="${PN}-${PV}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment