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.
This commit is contained in:
Julien Lepiller 2021-06-01 00:44:20 +02:00
parent 5bb3395c42
commit cc09453862
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82
1 changed files with 3 additions and 2 deletions

View File

@ -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)))