Commit d0f20e89 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.64.31

parent e03b376e
...@@ -34,7 +34,7 @@ SHAREDIR="$PROGDIR" ...@@ -34,7 +34,7 @@ SHAREDIR="$PROGDIR"
# will replaced with /etc/eepm during install # will replaced with /etc/eepm during install
CONFIGDIR="$PROGDIR/../etc" CONFIGDIR="$PROGDIR/../etc"
export EPMVERSION="3.64.30" export EPMVERSION="3.64.31"
# package, single (file), pipe, git # package, single (file), pipe, git
EPMMODE="package" EPMMODE="package"
...@@ -3129,6 +3129,7 @@ epm_create_fake() ...@@ -3129,6 +3129,7 @@ epm_create_fake()
__assure_exists_rpmbuild __assure_exists_rpmbuild
HOME="$(mktemp -d --tmpdir=$BIGTMPDIR)" || fatal HOME="$(mktemp -d --tmpdir=$BIGTMPDIR)" || fatal
unset BASH_ENV
remove_on_exit $HOME remove_on_exit $HOME
export HOME export HOME
__create_rpmmacros __create_rpmmacros
...@@ -3886,7 +3887,7 @@ __epm_korinf_install_eepm() ...@@ -3886,7 +3887,7 @@ __epm_korinf_install_eepm()
info "Check https://bugzilla.altlinux.org/44314 for reasons." info "Check https://bugzilla.altlinux.org/44314 for reasons."
info "You can install eepm package from Korinf manually, check instruction at https://eepm.ru" info "You can install eepm package from Korinf manually, check instruction at https://eepm.ru"
info info
info "Trying update eepm from the stable ALT repository ..." info "Trying update eepm from the stable ALT $DISTRVERSION repository ..."
docmd epm install eepm docmd epm install eepm
return return
fi fi
...@@ -6638,7 +6639,7 @@ __epm_pack_run_handler() ...@@ -6638,7 +6639,7 @@ __epm_pack_run_handler()
[ -n "$debug" ] && bashopt='-x' [ -n "$debug" ] && bashopt='-x'
#info "Running $($script --description 2>/dev/null) ..." #info "Running $($script --description 2>/dev/null) ..."
# TODO: add url info here # TODO: add url info here
( unset EPMCURDIR ; export PATH=$SCPATH ; export HOME=$(pwd) ; docmd $CMDSHELL $bashopt $repackcode "$tarname" "$filefortarname" "$packversion" "$url") || fatal ( unset BASH_ENV ; unset EPMCURDIR ; export PATH=$SCPATH ; export HOME=$(pwd) ; docmd $CMDSHELL $bashopt $repackcode "$tarname" "$filefortarname" "$packversion" "$url") || fatal
returntarname="$(cat "$filefortarname")" || fatal 'pack script $repackcode didn'\''t set tarname' returntarname="$(cat "$filefortarname")" || fatal 'pack script $repackcode didn'\''t set tarname'
local i local i
...@@ -10898,6 +10899,7 @@ __epm_repack_to_rpm() ...@@ -10898,6 +10899,7 @@ __epm_repack_to_rpm()
# TODO: keep home? # TODO: keep home?
HOME="$(mktemp -d --tmpdir=$BIGTMPDIR)" || fatal HOME="$(mktemp -d --tmpdir=$BIGTMPDIR)" || fatal
unset BASH_ENV
remove_on_exit $HOME remove_on_exit $HOME
export HOME export HOME
__create_rpmmacros __create_rpmmacros
...@@ -18237,24 +18239,26 @@ extract_archive() ...@@ -18237,24 +18239,26 @@ extract_archive()
local type="$(get_archive_type "$arc")" local type="$(get_archive_type "$arc")"
[ -n "$type" ] || fatal "Can't recognize type of $arc." [ -n "$type" ] || fatal "Can't recognize type of $arc."
local rarc="$(realpath -s "$arc")"
# TODO: move to patool # TODO: move to patool
if [ "$type" = "exe" ] ; then if [ "$type" = "exe" ] ; then
local subdir="$(basename "$arc" .exe)" local subdir="$(basename "$arc" .exe)"
mkdir -p "$subdir" && cd "$subdir" || fatal mkdir -p "$subdir" && cd "$subdir" || fatal
docmd $HAVE_7Z x ../"$arc" docmd $HAVE_7Z x "$rarc"
exit exit
fi fi
if [ "$type" = "dll" ] ; then if [ "$type" = "dll" ] ; then
local subdir="$(basename "$arc" .dll)" local subdir="$(basename "$arc" .dll)"
mkdir -p "$subdir" && cd "$subdir" || fatal mkdir -p "$subdir" && cd "$subdir" || fatal
docmd $HAVE_7Z x ../"$arc" docmd $HAVE_7Z x "$rarc"
exit exit
fi fi
if [ "$type" = "AppImage" ] || [ "$type" = "appimage" ] ; then if [ "$type" = "AppImage" ] || [ "$type" = "appimage" ] ; then
docmd chmod u+x "$arc" || fatal "Can't set executable permission" docmd chmod u+x "$rarc" || fatal "Can't set executable permission"
docmd "$(realpath $arc)" --appimage-extract docmd "$rarc" --appimage-extract
mv squashfs-root "$(basename "$(basename "$arc" .AppImage)" .appimage)" mv squashfs-root "$(basename "$(basename "$arc" .AppImage)" .appimage)"
exit exit
fi fi
...@@ -18262,7 +18266,7 @@ extract_archive() ...@@ -18262,7 +18266,7 @@ extract_archive()
if [ "$type" = "squashfs" ] ; then if [ "$type" = "squashfs" ] ; then
local subdir="$(basename "$arc" .squashfs)" local subdir="$(basename "$arc" .squashfs)"
mkdir -p "$subdir" && cd "$subdir" || fatal mkdir -p "$subdir" && cd "$subdir" || fatal
docmd $HAVE_7Z x ../"$arc" docmd $HAVE_7Z x "$rarc"
exit exit
fi fi
......
...@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR ...@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install # will replaced with /etc/eepm during install
CONFIGDIR=$PROGDIR/../etc CONFIGDIR=$PROGDIR/../etc
EPMVERSION="3.64.30" EPMVERSION="3.64.31"
# package, single (file), pipe, git # package, single (file), pipe, git
EPMMODE="package" EPMMODE="package"
......
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