[elbe-devel] [PATCH 2/4] preferences: use n= for pin attribute

Manuel Traut manuel.traut at linutronix.de
Thu Dec 21 10:28:42 CET 2017


On Wed, Dec 20, 2017 at 11:16:01PM +0100, John Ogness wrote:
> According to the man page for apt_preferences, a= specifies the
> suite and n= specifies the codename. elbe documentation discourages
> the use of the archive/suite name (i.e. stable, oldstable) because
> these change with each release. So since only codenames should be
> used (i.e. stretch, jessie), the correct preference setting for the
> "pin" attribute would be n=.
> 
> Change to use n= for the preference corresponding to the "pin"
> attribute.
> 
> Signed-off-by: John Ogness <john.ogness at linutronix.de>
Reviewed-by: Manuel Traut <manut at linutronix.de>

> ---
>  elbepack/makofiles/preferences.mako | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/elbepack/makofiles/preferences.mako b/elbepack/makofiles/preferences.mako
> index 0ed2af8b..3c698da5 100644
> --- a/elbepack/makofiles/preferences.mako
> +++ b/elbepack/makofiles/preferences.mako
> @@ -39,7 +39,7 @@ Pin-Priority: ${porg['pin']}
>  % for n in pkgs:
>  %  if "pin" in n.et.attrib.keys():
>  Package: ${n.et.text}
> -Pin: release a=${n.et.attrib["pin"]}
> +Pin: release n=${n.et.attrib["pin"]}
>  Pin-Priority: 991
>  
>  %  endif
> -- 
> 2.15.1
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel



More information about the elbe-devel mailing list