Commit d395dc18 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm install: add workaround for 2Gb files (on ALT), add fatal for 4Gb rpm packages

parent 0ddeaa75
......@@ -66,6 +66,17 @@ epm_install_files_alt()
# separate second output
info
# Workround for https://bugzilla.altlinux.org/56327
# TODO: check apt version
if is_file_greater_2gb $files ; then
direct="--direct"
fi
# TODO: check rpm version
if is_file_greater_4gb $files ; then
fatal "Only RPM 6 can install packages larger than 4 GB"
fi
# try install via apt if we could't install package file via rpm (we guess we need install requirements firsly)
if [ -z "$direct" ] && [ -z "$noscripts" ] ; then
......
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