guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#70715] [PATCH v2 2/3] guix: Include a main verb in crate importer d


From: Ludovic Courtès
Subject: [bug#70715] [PATCH v2 2/3] guix: Include a main verb in crate importer descriptions.
Date: Mon, 03 Jun 2024 22:38:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Herman Rimm <herman@rimm.ee> skribis:

> +++ b/guix/import/crate.scm
> @@ -187,6 +187,7 @@ (define* (make-crate-sexp #:key name version cargo-inputs 
> cargo-development-inpu
>           (guix-name (crate-name->package-name name))
>           (cargo-inputs (format-inputs cargo-inputs))
>           (cargo-development-inputs (format-inputs cargo-development-inputs))
> +         (description (beautify-description description))
>           (pkg `(package
>                     (name ,guix-name)
>                     (version ,version)
> @@ -212,7 +213,10 @@ (define* (make-crate-sexp #:key name version 
> cargo-inputs cargo-development-inpu
>                                                  cargo-development-inputs)))
>                     (home-page ,home-page)
>                     (synopsis ,(beautify-synopsis synopsis))
> -                   (description ,(beautify-description description))
> +                   (description ,(if (string-prefix? "This" description)
> +                                   description
> +                                   (string-append "This package provides "
> +                                                  description)))

I took the liberty to indent the ‘if’ above in the usual way.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]