Commit 8f09a405 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-repack: add __epm_have_repack_rule()

parent c8a81fed
......@@ -22,13 +22,20 @@ load_helper epm-assure
[ -n "$EPM_REPACK_SCRIPTS_DIR" ] || EPM_REPACK_SCRIPTS_DIR="$CONFIGDIR/repack.d"
__epm_check_if_needed_repack()
__epm_have_repack_rule()
{
# skip repacking on non ALT systems
[ "$BASEDISTRNAME" = "alt" ] || return 1
# FIXME: use real way (for any archive)
local pkgname="$(epm print name for package "$1")"
local repackcode="$EPM_REPACK_SCRIPTS_DIR/$pkgname.sh"
[ -s "$repackcode" ] || return
[ -s "$repackcode" ]
}
__epm_check_if_needed_repack()
{
__epm_have_repack_rule "$@" || return
warning "There is repack rule for $pkgname package. It is better install this package via 'epm --repack install' or 'epm play'."
}
......
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