Subject: [bug#77093] [PATCH rust-team 10/18] scripts: import: Add two newlines for ‘--insert’ option.

From: Efraim Flashner <[email-masked]>
Date: Tue, 18 Mar 2025 13:49:33 +0200

Is this only relevant for packages crated with 'guix import cargo'? If
so we should probably just change the importer to add a newline to the
misbehaving importer.

On Tue, Mar 18, 2025 at 03:24:23PM +0800, Hilton Chain wrote:
> For consistency with ‘insert-expression’.
> 
> * guix/scripts/import.scm (guix-import): Add two newlines when inserting.
> 
> Change-Id: I55b45ca137d175fdf6ee5c0bb2b6b1ca8385750d
> ---
>  guix/scripts/import.scm | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm
> index 4fad329cd3..58a84d0db7 100644
> --- a/guix/scripts/import.scm
> +++ b/guix/scripts/import.scm
> @@ -129,6 +129,7 @@ (define-command (guix-import . args)
>                        (let ((port (open-file file "a")))
>                          (pretty-print-with-comments port expr)
>                          (newline port)
> +                        (newline port)
>                          (close-port port)))))))))
>         (import-as-definitions importer args find-and-insert)))
>      ((importer args ...)
> -- 
> 2.48.1
> 
> 
> 
> 

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted