summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-09-09 17:27:52 +0200
committerUlrich Müller <ulm@gentoo.org>2020-09-12 18:03:01 +0200
commitb32860d416f1b8cd432123862dbf809dc6afa86c (patch)
treebfb22b141cab896487eacb9a5cb33be9a540f6d9 /eclass/eutils.eclass
parentl10n.eclass: strip-linguas() moved from eutils to here. (diff)
downloadgentoo-b32860d416f1b8cd432123862dbf809dc6afa86c.tar.gz
gentoo-b32860d416f1b8cd432123862dbf809dc6afa86c.tar.bz2
gentoo-b32860d416f1b8cd432123862dbf809dc6afa86c.zip
eutils.eclass: Deprecate emktemp().
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index cd59d3f9ccc4..0a99d00ee01a 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -31,9 +31,11 @@ esac
# @FUNCTION: emktemp
# @USAGE: [temp dir]
# @DESCRIPTION:
-# Cheap replacement for when debianutils (and thus mktemp)
-# does not exist on the users system.
+# Cheap replacement for when coreutils (and thus mktemp) does not exist
+# on the user's system.
emktemp() {
+ eqawarn "emktemp is deprecated. Create a temporary file in \${T} instead."
+
local exe="touch"
[[ $1 == -d ]] && exe="mkdir" && shift
local topdir=$1