Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgdiff-mg: use /var/tmp instead of /tmp as default TMPDIR #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pkgdiff-mg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ fn2=${2##*/}
ver1=$(patom -F '%{fullver}' "=${cat1}/${fn1%.ebuild}")
ver2=$(patom -F '%{fullver}' "=${cat2}/${fn2%.ebuild}")

export PORTAGE_TMPDIR="${TMPDIR:-/tmp}"/mgorny-dev-scripts
DEFAULT_TMPDIR=/tmp
if [[ -d /run/systemd/system ]]; then
# System booted via systemd, which automatically cleans up stale
# files in /var/tmp.
DEFAULT_TMPDIR=/var/tmp
fi
export PORTAGE_TMPDIR="${TMPDIR:-${DEFAULT_TMPDIR}}"/mgorny-dev-scripts
export USE="${USE} test"
# use noauto to skip pkg_setup
export FEATURES="${FEATURES} noauto"
Expand Down