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.master
parent
5bb3395c42
commit
cc09453862
|
@ -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)))
|
||||
|
|
Reference in New Issue