Commit c2fdb71a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-print: fix constructname

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