aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-11-24 20:51:09 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2017-11-24 20:51:09 -0800
commitaa1fdea24a560c33b56b9e11e6ca68375f261e1e (patch)
treecfdb9b06a28b958e8ea96f1a9d081304b45c0ceb
parentrsync-gen.sh: show exact command in error. (diff)
downloadmastermirror-scripts-aa1fdea24a560c33b56b9e11e6ca68375f261e1e.tar.gz
mastermirror-scripts-aa1fdea24a560c33b56b9e11e6ca68375f261e1e.tar.bz2
mastermirror-scripts-aa1fdea24a560c33b56b9e11e6ca68375f261e1e.zip
rsync-gen.sh: gpg needs output file to NOT exist
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xrsync-gen.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/rsync-gen.sh b/rsync-gen.sh
index f1a744a..66c3f05 100755
--- a/rsync-gen.sh
+++ b/rsync-gen.sh
@@ -231,6 +231,7 @@ timelog___end "THICKEN-META" | timelogger
timelog_start "SIGN-METAMANIFEST" | timelogger
for m in Manifest metadata/glsa/Manifest Manifest/news/Manifest ; do
tmp="$(mktemp)"
+ rm -f "${tmp}" # gpg needs the file to NOT exist, there is no overwrite option.
src="${STAGEDIR_repo_gentoo}"/$m
[ -s "${src}" ] || continue
cmd=( \