public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [flatpaks/flatpak-runtime] f45: generate-files.sh: don't leave empty output files on failure
@ 2026-09-11 14:40 Owen W. Taylor
  0 siblings, 0 replies; only message in thread
From: Owen W. Taylor @ 2026-09-11 14:40 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : flatpaks/flatpak-runtime
Branch : f45
Commit : 69eb071aac6ebc1eaa6a53bf2d45f31367e67580
Author : Owen W. Taylor <otaylor@fishsoup.net>
Date   : 2020-03-20T21:51:58+01:00
Stats  : +4/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/69eb071aac6ebc1eaa6a53bf2d45f31367e67580?branch=f45

Log:
generate-files.sh: don't leave empty output files on failure

---
diff --git a/tools/generate-files.sh b/tools/generate-files.sh
index 3e7def9..dd1a9d3 100755
--- a/tools/generate-files.sh
+++ b/tools/generate-files.sh
@@ -37,4 +37,7 @@ runtime="$ns.$type/x86_64/$version"
 
 echo "$base: listing files in $runtime"
 
-flatpak run --file-forwarding --command=/usr/bin/python3 $runtime @@ tools/list-files.py @@ $sdk > $out
+flatpak run \
+        --file-forwarding \
+        --command=/usr/bin/python3 $runtime @@ tools/list-files.py @@ $sdk \
+        > $out.tmp && mv $out.tmp $out || rm $out.tmp

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 14:40 [flatpaks/flatpak-runtime] f45: generate-files.sh: don't leave empty output files on failure Owen W. Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox