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

add epm ei erc to assure erc

parent eec3a11c
......@@ -53,7 +53,7 @@ check_pkg_integrity()
true
;;
*)
assure_exists erc
assure_exists erc || epm ei erc || fatal "erc is not available. can't check the package"
docmd erc test "$PKG" && return
;;
esac
......
......@@ -245,7 +245,7 @@ __prepare_source_package()
[ -x "$alpkg" ] || docmd chmod u+x $verbose "$alpkg"
./$alpkg --appimage-extract || fatal
alpkg=$PKGNAME-$VERSION.tar
assure_exists erc || fatal
assure_exists erc || epm ei erc || fatal
# make a tar for alien
a= erc a $alpkg squashfs-root
return
......@@ -254,7 +254,7 @@ __prepare_source_package()
__set_version_pkgname $alpkg
if [ -n "$VERSION" ] ; then
# TODO: don't use erc for detect type? then we potentially can skip install it
assure_exists erc || fatal
assure_exists erc || epm ei erc || fatal
pkgtype="$(a= erc type $alpkg)"
local newalpkg
newalpkg=$PKGNAME-$VERSION.$pkgtype
......@@ -265,7 +265,7 @@ __prepare_source_package()
else
newalpkg=$PKGNAME-$VERSION.tar
#newalpkg=$(basename $alpkg .$pkgtype).tar
assure_exists erc || fatal
assure_exists erc || epm ei erc || fatal
a= erc repack $alpkg $newalpkg || fatal
fi
if [ "$alpkg" != "$newalpkg" ] ; then
......
......@@ -9,8 +9,7 @@ DESCRIPTION="KYOCERA Printing Package (Linux Universal Driver)"
URL="https://www.kyoceradocumentsolutions.eu/content/download-center/eu/drivers/all/Linux_Universal_Driver_zip.download.zip"
# FIXME: ALT Linux only
epm assure erc || fatal
epm assure erc || epm ei erc || fatal
PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
......
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