Commit 5c69adee authored by Vitaly Lipatov's avatar Vitaly Lipatov

move __epm_check_if_needed_repack to epm-repack

parent 1972d412
......@@ -290,15 +290,6 @@ __epm_check_if_src_rpm()
done
}
# FIXME: move this hack to epm-repack
__epm_check_if_needed_repack()
{
local pkgname="$(epm print name from "$1")"
local repackcode="$CONFIGDIR/repack.d/$pkgname.sh"
[ -x "$repackcode" ] || return
warning "There is repack rule for $pkgname package. It is better install this package via 'epm --repack install' or 'epm play'."
}
__epm_if_command_path()
{
is_dirpath "$1" && rhas "$1" "bin/"
......
......@@ -20,6 +20,17 @@
load_helper epm-sh-altlinux
load_helper epm-assure
__epm_check_if_needed_repack()
{
# FIXME: use real way (for any archive)
# FIXME: from вроде не существует и не работает
local pkgname="$(epm print name from "$1")"
local repackcode="$CONFIGDIR/repack.d/$pkgname.sh"
[ -x "$repackcode" ] || return
warning "There is repack rule for $pkgname package. It is better install this package via 'epm --repack install' or 'epm play'."
}
# arg: rpm or deb
# fills split_replaced_pkgs with packages of that type
__epm_split_by_pkg_type()
......
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