Commit 7291fbf2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-print: allow empty version

parent e01e7a82
......@@ -136,7 +136,8 @@ construct_name()
[ -n "$arch" ] || arch="$(distro_info --distro-arch)"
[ -n "$pkgtype" ] || pkgtype="$(distro_info -p)"
local ds=$(get_pkg_name_delimiter $pkgtype)
echo "${name}$ds${version}${ds/-/.}$arch.$pkgtype"
[ -n "$version" ] && version="$ds$version"
echo "${name}${version}${ds/-/.}$arch.$pkgtype"
}
epm_print()
......
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