aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-10-06 12:30:50 +0200
committerintrigeri <intrigeri@boum.org>2010-10-06 12:30:50 +0200
commitff73987f30e6566b9a89208e6b1ad96724571e0c (patch)
tree248b6800cbed4c62b17e078e346f50d86a36130b /templates
parent81fe80d914a2036503cd38fd5d37ad73e558ebd2 (diff)
downloadpuppet-apt-ff73987f30e6566b9a89208e6b1ad96724571e0c.tar.gz
puppet-apt-ff73987f30e6566b9a89208e6b1ad96724571e0c.tar.bz2
Add per-release preferences files.
The previous default pinning preferences only supported tracking stable. Tracking squeeze or sid is now possible.
Diffstat (limited to 'templates')
-rw-r--r--templates/preferences.erb7
-rw-r--r--templates/preferences_lenny.erb19
-rw-r--r--templates/preferences_sid.erb9
-rw-r--r--templates/preferences_squeeze.erb19
4 files changed, 47 insertions, 7 deletions
diff --git a/templates/preferences.erb b/templates/preferences.erb
deleted file mode 100644
index ac71582..0000000
--- a/templates/preferences.erb
+++ /dev/null
@@ -1,7 +0,0 @@
-Package: *
-Pin: release a=unstable
-Pin-Priority: 1
-
-Package: *
-Pin: release a=testing
-Pin-Priority: 2
diff --git a/templates/preferences_lenny.erb b/templates/preferences_lenny.erb
new file mode 100644
index 0000000..0d7b46f
--- /dev/null
+++ b/templates/preferences_lenny.erb
@@ -0,0 +1,19 @@
+Explanation: Debian <%= codename %>
+Package: *
+Pin: release o=Debian,n=<%= codename %>
+Pin-Priority: 990
+
+Explanation: Debian <%= next_codename %>
+Package: *
+Pin: release o=Debian,n=<%= next_codename %>
+Pin-Priority: 2
+
+Explanation: Debian sid
+Package: *
+Pin: release o=Debian,n=sid
+Pin-Priority: 1
+
+Explanation: Debian fallback
+Package: *
+Pin: release o=Debian
+Pin-Priority: -10
diff --git a/templates/preferences_sid.erb b/templates/preferences_sid.erb
new file mode 100644
index 0000000..3d8a45f
--- /dev/null
+++ b/templates/preferences_sid.erb
@@ -0,0 +1,9 @@
+Explanation: Debian sid
+Package: *
+Pin: release o=Debian,n=sid
+Pin-Priority: 990
+
+Explanation: Debian fallback
+Package: *
+Pin: release o=Debian
+Pin-Priority: -10
diff --git a/templates/preferences_squeeze.erb b/templates/preferences_squeeze.erb
new file mode 100644
index 0000000..9aef25a
--- /dev/null
+++ b/templates/preferences_squeeze.erb
@@ -0,0 +1,19 @@
+Explanation: Debian <%= codename %>
+Package: *
+Pin: release o=Debian,n=<%= codename %>
+Pin-Priority: 990
+
+Explanation: Debian wheezy
+Package: *
+Pin: release o=Debian,n=wheezy
+Pin-Priority: 2
+
+Explanation: Debian sid
+Package: *
+Pin: release o=Debian,n=sid
+Pin-Priority: 1
+
+Explanation: Debian fallback
+Package: *
+Pin: release o=Debian
+Pin-Priority: -10