guix import: Add a blank line after each package definition.

Starting from commit 371a83b764, 'guix
import crate -r' (or similar) would no longer print a blank line in
between definitions.  This patch fixes it.

Reported by jgart <jgart@dismail.de>.

* guix/scripts/import.scm (guix-import): Add second 'newline' call.
This commit is contained in:
Ludovic Courtès 2022-10-10 17:24:19 +02:00
parent f78cfcd7d3
commit 7d9fd1d7b7
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -97,7 +97,9 @@ (define-command (guix-import . args)
((? list? expressions)
(for-each (lambda (expr)
(print expr)
(newline))
;; Two newlines: one after the closing paren, and
;; one to leave a blank line.
(newline) (newline))
expressions))
(x
(leave (G_ "'~a' import failed~%") importer))))