summaryrefslogtreecommitdiffstats
path: root/roles/common/files/etc/apt
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-11-22 17:11:19 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:50:46 +0200
commit099678c6b4fd176d3232984e634d6311f7c83494 (patch)
treea7290c5ba4965bda49635c23db64e74d47d778de /roles/common/files/etc/apt
parentc10df50a846d77a206aad3c16e694529db019d1e (diff)
Fix unattended-upgrades's configuration.
${distro_codename} doesn't work properly there, so we put stable and/or oldstable instead.
Diffstat (limited to 'roles/common/files/etc/apt')
-rw-r--r--roles/common/files/etc/apt/apt.conf.d/50unattended-upgrades15
1 files changed, 12 insertions, 3 deletions
diff --git a/roles/common/files/etc/apt/apt.conf.d/50unattended-upgrades b/roles/common/files/etc/apt/apt.conf.d/50unattended-upgrades
index 8d30e3e..5a58095 100644
--- a/roles/common/files/etc/apt/apt.conf.d/50unattended-upgrades
+++ b/roles/common/files/etc/apt/apt.conf.d/50unattended-upgrades
@@ -4,10 +4,19 @@ Unattended-Upgrade::Origins-Pattern {
// Note that this will silently match a different release after
// migration to the specified archive (e.g. testing becomes the
// new stable).
- "o=${distro_id},a=${distro_codename}";
-// "o=${distro_id},a=${distro_codename}-updates";
+ // XXX: Sadly as of Wheezy, unattended-upgrades doesn't match
+ // $distro_codename against (old)stable. Hence since packages
+ // that are candidates for upgrade show up with a=(old)stable,
+ // it is not enough to specifiy a=$distro_codename here.
+ // Instead, we list both oldstable and stable; the useless one
+ // is harmless and is being ignored anyway, as it is not in a
+ // proper sources.list.
+ "o=${distro_id},a=oldstable";
+ "o=${distro_id},a=stable";
+// "o=${distro_id},a=stable-updates";
// "o=${distro_id},a=proposed-updates";
- "o=${distro_id},a=${distro_codename},l=Debian-Security";
+ "o=${distro_id},a=oldstable,l=Debian-Security";
+ "o=${distro_id},a=stable,l=Debian-Security";
};
// List of packages to not update