local pkgname="$(epm print name for package "$1")"
warning "There is repack rule for '$pkgname' package. It is better install this package via 'epm install --repack' or 'epm play'."
warning 'There is repack rule for $pkgname package. It is better install this package via epm install --repack or epm play.'
}
# arg: rpm or deb
...
...
@@ -123,7 +123,7 @@ __prepare_source_package()
local pkgname="$(echo$alpkg | sed-e"s|_.*||")"
# TODO: use stoplist only for deb?
[-z"$force"]&& __check_stoplist $pkgname&& fatal "Please use official package instead of $alpkg repacking (It is not recommended to use --force to skip this checking."
[-z"$force"]&& __check_stoplist $pkgname&& fatal 'Please use official package instead of $alpkg repacking (It is not recommended to use --force to skip this checking.'
SUBGENERIC=''
...
...
@@ -152,7 +152,7 @@ __prepare_source_package()
fi
# it is possible there are a few files, we don't support it
[-s"$returntarname"]|| fatal "Can't read result from pack: '$returntarname' is not a readable file."
[-s"$returntarname"]|| fatal 'Cant read result from pack: $returntarname is not a readable file.'
alpkg=$(basename$returntarname)
# FIXME: looks like a hack with current dir
...
...
@@ -187,7 +187,7 @@ __epm_repack_single()
fi
;;
*)
fatal "$PKGFORMAT is not supported for repack yet"
fatal '$PKGFORMAT is not supported for repack yet'
;;
esac
...
...
@@ -200,7 +200,7 @@ __epm_repack()
local pkg
repacked_pkgs=''
for pkg in$*;do
__epm_repack_single "$pkg"|| fatal "Error with $pkg repacking."
__epm_repack_single "$pkg"|| fatal 'Error with $pkg repacking.'
warning "%%% You are trying install package $i repacked from third-party software source. Use it at your own risk. %%%"
warning '%%% You are trying install package $i repacked from third-party software source. Use it at your own risk. %%%'
continue
fi
if epm_status_thirdparty "$i";then
warning "%%% You are trying install package $i from third-party software source. Use it at your own risk. %%%"
warning '%%% You are trying install package $i from third-party software source. Use it at your own risk. %%%'
continue
fi
if! epm_status_original "$i";then
warning "%%% You are trying install package $i not from official $DISTRNAME/$DISTRVERSION repository. Use it at your own risk. %%%"
warning '%%% You are trying install package $i not from official $DISTRNAME/$DISTRVERSION repository. Use it at your own risk. %%%'
continue
fi
done
...
...
@@ -116,7 +116,7 @@ __epm_check_vendor()
if! epm_status_validate "$i";then
# it is missed package probably (package remove case)
if is_installed "$i";then
warning "Can't get any info for $i package. Scripts are DISABLED for package $bi. Use --scripts if you need run scripts from such packages."
warning 'Cant get any info for $i package. Scripts are DISABLED for package $bi. Use --scripts if you need run scripts from such packages.'
fi
noscripts="--noscripts"
continue
...
...
@@ -126,7 +126,7 @@ __epm_check_vendor()
vendor="$(epm print field Vendor for"$i")"
if[-z"$vendor"];then
warning "Can't get info about vendor for $i package. Scripts are DISABLED for package $bi. Use --scripts if you need run scripts from such packages."
warning 'Cant get info about vendor for $i package. Scripts are DISABLED for package $bi. Use --scripts if you need run scripts from such packages.'
noscripts="--noscripts"
continue
fi
...
...
@@ -135,15 +135,15 @@ __epm_check_vendor()
epm_status_repacked "$i"&&continue
if __epm_vendor_ok_scripts "$vendor";then
warning "Scripts are ENABLED for package $bi from outside vendor '$vendor' (this vendor is listed in $CONFIGDIR/vendorallowscripts.list). Use --noscripts if you need disable scripts in such packages."
warning 'Scripts are ENABLED for package $bi from outside vendor $vendor (this vendor is listed in $CONFIGDIR/vendorallowscripts.list). Use --noscripts if you need disable scripts in such packages.'
continue
fi
if __epm_package_ok_scripts "$i";then
warning "Scripts are ENABLED for package $bi from outside vendor '$vendor' (the package is listed in $CONFIGDIR/pkgallowscripts.list). Use --noscripts if you need disable scripts in such packages."
warning 'Scripts are ENABLED for package $bi from outside vendor $vendor (the package is listed in $CONFIGDIR/pkgallowscripts.list). Use --noscripts if you need disable scripts in such packages.'
continue
fi
warning "Scripts are DISABLED for package $bi from outside vendor '$vendor'. Use --scripts if you need run scripts from such packages."
warning 'Scripts are DISABLED for package $bi from outside vendor $vendor. Use --scripts if you need run scripts from such packages.'
local res="$(epm print compare "$EPMVERSION""$latest")"
["$res"="-1"]&& info "Latest EPM version in Korinf repository is $latest. You have version $EPMVERSION running."&& info "You can update eepm with \$ epm ei command."
["$res"="-1"]&& info 'Latest EPM version in Korinf repository is $latest. You have version $EPMVERSION running.'&& info "You can update eepm with \$ epm ei command."
}
__save_available_packages()
...
...
@@ -188,7 +188,7 @@ case $PMTYPE in
sudocmd winget source update
;;
*)
fatal "Have no suitable update command for $PMTYPE"
fatal 'Have no suitable update command for $PMTYPE'