[-z"$force"]&& __check_stoplist $(echo$alpkg | sed-e"s|_.*||")&& fatal "Please use official package instead of $alpkg repacking (It is not recommended to use --force to skip this checking."
PKGNAME=''
VERSION=''
SUBGENERIC=''
# convert tarballs to tar (for alien)
if rhas "$alpkg""\.(rpm|deb)$";then
return
fi
if rhas "$alpkg""\.AppImage$";then
__set_version_pkgname $alpkg
[-n"$VERSION"]|| fatal "Can't get version from $alpkg."
assure_distr ALTLinux "install --repack for rpm target"
;;
;;
esac
esac
...
@@ -6622,62 +6699,20 @@ __epm_repack_to_rpm()
...
@@ -6622,62 +6699,20 @@ __epm_repack_to_rpm()
local alpkg
local alpkg
local abspkg
local abspkg
local tmpbuilddir
local tmpbuilddir
repacked_rpms=''
repacked_pkgs=''
for pkg in$pkgs;do
for pkg in$pkgs;do
tmpbuilddir=$HOME/$(basename$pkg).tmpdir
tmpbuilddir=$HOME/$(basename$pkg).tmpdir
mkdir$tmpbuilddir
mkdir$tmpbuilddir
abspkg="$(realpath$pkg)"
abspkg="$(realpath$pkg)"
info ""
info ""
info "Repacking $abspkg to local rpm format ..."
info "Repacking $abspkg to local rpm format ..."
# alien failed with spaced names
# alpkg=$abspkg
alpkg=$(basename$pkg)
# TODO: use func for get name from deb pkg
# TODO: epm print name from deb package
# TODO: use stoplist only for deb?
[-z"$force"]&& __check_stoplist $(echo$alpkg | sed-e"s|_.*||")&& fatal "Please use official rpm package instead of $alpkg (It is not recommended to use --force to skip this checking."
alpkg=$(basename$pkg)
# don't use abs package path: copy package to temp dir and use there
# don't use abs package path: copy package to temp dir and use there