Commit 10c7b329 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: use BIGTMPDIR conception (ALT bug 43491)

parent 25492369
...@@ -61,7 +61,7 @@ __epm_repack_to_deb() ...@@ -61,7 +61,7 @@ __epm_repack_to_deb()
repacked_pkgs='' repacked_pkgs=''
local TDIR=$(mktemp -d) local TDIR=$(mktemp -d --tmpdir=$BIGTMPDIR)
for pkg in $pkgs ; do for pkg in $pkgs ; do
abspkg="$(realpath "$pkg")" abspkg="$(realpath "$pkg")"
...@@ -299,7 +299,7 @@ __epm_repack_to_rpm() ...@@ -299,7 +299,7 @@ __epm_repack_to_rpm()
fi fi
local pkg local pkg
export HOME=$(mktemp -d) export HOME=$(mktemp -d --tmpdir=$BIGTMPDIR)
__create_rpmmacros __create_rpmmacros
local alpkg local alpkg
......
...@@ -603,6 +603,12 @@ set_distro_info() ...@@ -603,6 +603,12 @@ set_distro_info()
DISTRARCH=$($DISTRVENDOR --distro-arch) DISTRARCH=$($DISTRVENDOR --distro-arch)
fi fi
DISTRCONTROL="$($DISTRVENDOR -y)" DISTRCONTROL="$($DISTRVENDOR -y)"
# TODO: improve BIGTMPDIR conception
# https://bugzilla.mozilla.org/show_bug.cgi?id=69938
# https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s15.html
# https://geekpeach.net/ru/%D0%BA%D0%B0%D0%BA-systemd-tmpfiles-%D0%BE%D1%87%D0%B8%D1%89%D0%B0%D0%B5%D1%82-tmp-%D0%B8%D0%BB%D0%B8-var-tmp-%D0%B7%D0%B0%D0%BC%D0%B5%D0%BD%D0%B0-tmpwatch-%D0%B2-centos-rhel-7
[ -n "$BIGTMPDIR" ] || [ -d "/var/tmp" ] && BIGTMPDIR="/var/tmp" || BIGTMPDIR="/tmp"
} }
# FIXME: detect if not recognized # FIXME: detect if not recognized
......
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