From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH] git-ptx-refresh-tags-editor: use mktemp instead of tempfile
Date: Mon, 12 Feb 2024 10:22:00 +0100 [thread overview]
Message-ID: <20240212092200.1514323-1-rhi@pengutronix.de> (raw)
On Debian 12 (bookworm), tempfile comes from debianutils, and prints a
deprecation warning:
WARNING: tempfile is deprecated; consider using mktemp instead.
Switch to mktemp from coreutils, which is widely available.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
scripts/git-ptx-refresh-tags-editor | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/git-ptx-refresh-tags-editor b/scripts/git-ptx-refresh-tags-editor
index fcc9c78f3c7d..0177ad3a0194 100755
--- a/scripts/git-ptx-refresh-tags-editor
+++ b/scripts/git-ptx-refresh-tags-editor
@@ -26,7 +26,7 @@ push_tags() {
filter_rebase() {
file="${1}"
- tmpfile="$(tempfile -d "$(dirname "${file}")" -p "$(basename ${file}).")"
+ tmpfile="$(mktemp "${file}.XXXXX")"
tags=
cat "${file}" | while read cmd commitish subject; do
case "${cmd}" in
--
2.39.2
next reply other threads:[~2024-02-12 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-12 9:22 Roland Hieber [this message]
2024-02-14 16:19 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240212092200.1514323-1-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox