Package: unattended-upgrades
Version: 0.79
Severity: wishlist

It was just editing my 50unattended-upgrades file, and ended up wishing
I could just set it up and not change it as the machine moves from
unstable to testing to stable.  Then it occurred to me that I probably
could do that if you added ${distro_release} to the macro's
unattended-grade supports.

${distro_release} would expand to
lsb_release.get_distro_information()['RELEASE'].

If you did support if, you could ship a standard 50unattended-upgrades
that worked for all Suite's.

While I'm here I ended up inserting my own documentation into
50unattended-upgrades because the stuff that comes with it omits a few
things.  Maybe you could use it:

// Unattended-Upgrade::Origins-Pattern controls which packages are
// upgraded.
//
// Lines below have the format format is "keyword=value,...".  A
// package will be upgraded only if the values in its metadata match
// all the supplied keywords in a line.  (In other words, omitted
// keywords are wild cards.) The keywords originate from the Release
// file, but several aliases are accepted.  The accepted keywords are:
//   a,archive,suite (eg, "stable")
//   c,component     (eg, "main", "crontrib", "non-free")
//   l,label         (eg, "Debian", "Debian-Security")
//   o,origin        (eg, "Debian", "Unofficial Multimedia Packages")
//     site          (eg, "http.debian.net")
// The available values on the system are printed by the command
// "apt-cache policy", and can be debugged by running
// "unattended-upgrades -d" and looking at the log file.
//
// Within lines unattended-upgrades allows 2 macros whose values are
// derived from /etc/debian_version:
//   ${distro_id}            Installed origin.
//   ${distro_codename}      Installed codename (eg, "squeeze")
Unattended-Upgrade::Origins-Pattern {


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages unattended-upgrades depends on:
ii  apt                    0.9.7.2
ii  apt-utils              0.9.7.2
ii  debconf [debconf-2.0]  1.5.44
ii  lsb-base               4.1+Debian7
ii  lsb-release            4.1+Debian7
ii  python                 2.7.3~rc2-1
ii  python-apt             0.8.4
ii  ucf                    3.0025+nmu3

unattended-upgrades recommends no packages.

Versions of packages unattended-upgrades suggests:
pn  bsd-mailx  <none>

-- debconf information:
  unattended-upgrades/enable_auto_updates: false


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to