Commit c2fdb71a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-print: fix constructname

parent 6dd8e552
......@@ -133,11 +133,12 @@ construct_name()
local arch="$3"
local pkgtype="$4"
local ds="$5"
local pds="$ds"
local pds
[ -n "$arch" ] || arch="$($DISTRVENDOR --distro-arch)"
[ -n "$pkgtype" ] || pkgtype="$($DISTRVENDOR -p)"
[ -n "$ds" ] || ds=$(get_pkg_name_delimiter $pkgtype)
pds="$ds"
[ "$pds" = "-" ] && pds="."
[ -n "$version" ] && version="$ds$version"
echo "${name}${version}${pds}$arch.$pkgtype"
......
Markdown is supported
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