[Qa-jenkins-scm] [jenkins.debian.net] 07/11: lvc: work around the .iso not belonging to jenkins
Holger Levsen
holger at layer-acht.org
Fri May 27 18:15:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 362fc15df35cfe9db30d87361a53829e0050d972
Author: Philip Hands <phil at hands.com>
Date: Thu May 26 21:31:36 2016 +0200
lvc: work around the .iso not belonging to jenkins
---
bin/lvc.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bin/lvc.sh b/bin/lvc.sh
index d7fc297..28a2fd3 100755
--- a/bin/lvc.sh
+++ b/bin/lvc.sh
@@ -33,7 +33,10 @@ fetch_if_newer() {
echo "File exists, will only re-download if a newer one is available..."
curlopts="$curlopts -z $file"
fi
- curl $curlopts -o $file $url
+ curl $curlopts -o $file.new $url
+ if [ -e $file.new ] ; then
+ mv -f $file.new $file
+ fi
}
discard_snapshots() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list