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

John Ogness john.ogness at linutronix.de
Wed Dec 20 23:16:01 CET 2017


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>
---
 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



More information about the elbe-devel mailing list