[PATCH consfigurator] APT properties: cache packages installed or removed this deployment

David Bremner david at tethera.net
Sat Nov 5 15:58:10 GMT 2022


Sean Whitton <spwhitton at spwhitton.name> writes:

> +
> +- APT properties now cache what packages have been installed or removed for
> +  the duration of the deployment.  This should significantly speed up some
> +  deployments.  It could break some obscure consfigs.
> +

As mentioned on IRC, I currently have one use-case for calling apt-get
directly, namely calling build-dep. I'm not sure if this is a problem or
not. If you have a clear idea of what breaks if the cache(s) get out of
sync, maybe it would be worth explaining.


>  1.1.1 (2022-09-18)
>  ------------------
>  
> diff --git a/src/property/apt.lisp b/src/property/apt.lisp
> index a300793..8ca9394 100644
> --- a/src/property/apt.lisp
> +++ b/src/property/apt.lisp
> @@ -39,33 +39,48 @@
>  
>  ;;;; Properties
>  
> +;; Cache what we've installed and removed this deployment, rather than
> +;; checking over and over again.  We assume, then, that no other properties
> +;; add or remove packages in a way that is significant to the deployment.

I'm not clear on what "significant to the deployment" means here.




More information about the sgo-software-discuss mailing list