summaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2021-06-01 00:44:20 +0200
committerJulien Lepiller <julien@lepiller.eu>2021-06-22 13:10:32 +0200
commitcc09453862d1604bbbb4a2a9487e395d9a459708 (patch)
tree70aa7a186c86e3b93a6cdefef7285d4e02718081 /guix/build
parent5bb3395c42c3475cd4d71d475ae050f1b80fbe2d (diff)
downloadguix-patches-cc09453862d1604bbbb4a2a9487e395d9a459708.tar
guix-patches-cc09453862d1604bbbb4a2a9487e395d9a459708.tar.gz
guix: maven: Use a temporary file to fix pom files.
* guix/build/maven/pom.scm (fix-pom-dependencies): Actually use the temporary file that was created.
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/maven/pom.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/guix/build/maven/pom.scm b/guix/build/maven/pom.scm
index 9c0669c7cd..9e35e47a7f 100644
--- a/guix/build/maven/pom.scm
+++ b/guix/build/maven/pom.scm
@@ -508,6 +508,7 @@ Returns nothing, but overrides the @var{pom-file} as a side-effect."
(throw 'no-such-input group artifact))))))
(let ((tmpfile (string-append pom-file ".tmp")))
- (with-output-to-file pom-file
+ (with-output-to-file tmpfile
(lambda _
- (sxml->xml (fix-maven-xml (fix-pom pom)))))))
+ (sxml->xml (fix-maven-xml (fix-pom pom)))))
+ (rename-file tmpfile pom-file)))