Commit 6b19e506 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-print constructname: allow fifth args with delimeter

parent 37cc8dd9
......@@ -125,17 +125,18 @@ compare_version()
}
# construct package file name.
# name version [arch] [pkgtype]
# name version [arch] [pkgtype] [ds]
construct_name()
{
local name="$1"
local version="$2"
local arch="$3"
local pkgtype="$4"
local ds="$5"
[ -n "$arch" ] || arch="$(distro_info --distro-arch)"
[ -n "$pkgtype" ] || pkgtype="$(distro_info -p)"
local ds=$(get_pkg_name_delimiter $pkgtype)
[ -n "$ds" ] || ds=$(get_pkg_name_delimiter $pkgtype)
[ -n "$version" ] && version="$ds$version"
echo "${name}${version}${ds/-/.}$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