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:
		
							parent
							
								
									5bb3395c42
								
							
						
					
					
						commit
						cc09453862
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -508,6 +508,7 @@ Returns nothing, but overrides the @var{pom-file} as a side-effect."
 | 
				
			||||||
              (throw 'no-such-input group artifact))))))
 | 
					              (throw 'no-such-input group artifact))))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  (let ((tmpfile (string-append pom-file ".tmp")))
 | 
					  (let ((tmpfile (string-append pom-file ".tmp")))
 | 
				
			||||||
    (with-output-to-file pom-file
 | 
					    (with-output-to-file tmpfile
 | 
				
			||||||
      (lambda _
 | 
					      (lambda _
 | 
				
			||||||
        (sxml->xml (fix-maven-xml (fix-pom pom)))))))
 | 
					        (sxml->xml (fix-maven-xml (fix-pom pom)))))
 | 
				
			||||||
 | 
					    (rename-file tmpfile pom-file)))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue