Bug#535347: unattended-upgrades: fails with TypeError: not enough arguments for format string if package is set on hold

2009-12-15 Thread Timo Juhani Lindfors
Hi,

I keep hitting this in squeeze. Is there still sufficient time to test
the new version before freeze?





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



Bug#535347: unattended-upgrades: fails with TypeError: not enough arguments for format string if package is set on hold

2009-07-03 Thread Michael Vogt
On Wed, Jul 01, 2009 at 09:26:07PM +0200, Joerg Schuetter wrote:
 Package: unattended-upgrades
 Version: 0.42debian1
 Severity: important

Thanks, commited to bzr and will be part of the next upload.

Cheers,
 Michael 
 



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



Bug#535347: unattended-upgrades: fails with TypeError: not enough arguments for format string if package is set on hold

2009-07-01 Thread Joerg Schuetter
Package: unattended-upgrades
Version: 0.42debian1
Severity: important


After setting one package on hold the unattended upgrade fails with
Traceback (most recent call last):
  File /usr/bin/unattended-upgrade, line 393, in module
main()
  File /usr/bin/unattended-upgrade, line 220, in main
logging.warning(_(package '%s' upgradable but fails to be marked for 
upgrade (%s)) % e)
TypeError: not enough arguments for format string


This patch fixes the syntax errors in the script:
--- unattended-upgrade.orig 2009-07-01 21:09:04.0 +0200
+++ /usr/bin/unattended-upgrade 2009-07-01 21:14:04.0 +0200
@@ -217,8 +217,8 @@
 pkgs_kept_back.append(pkg.name)
 except SystemError, e:
 # can't upgrade
-logging.warning(_(package '%s' upgradable but fails to be 
marked for upgrade (%s)) % e)
-rewind_cache(cache, pkgs_to_ugprade)
+logging.warning(_(package '%s' upgradable but fails to be 
marked for upgrade (%s)) % (pkg.name, e))
+rewind_cache(cache, pkgs_to_upgrade)
 pkgs_kept_back.append(pkg.name)


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

Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages unattended-upgrades depends on:
ii  apt   0.7.21 Advanced front-end for dpkg
ii  apt-utils 0.7.21 APT utility programs
ii  debconf [debconf-2.0] 1.5.26 Debian configuration management sy
ii  python2.5.4-2An interactive high-level object-o
ii  python-apt0.7.10.4   Python interface to libapt-pkg
ii  ucf   3.0018 Update Configuration File: preserv

unattended-upgrades recommends no packages.

Versions of packages unattended-upgrades suggests:
ii  bsd-mailx [mailx]  8.1.2-0.20081101cvs-2 A simple mail user agent
ii  mailx  1:20081101-2  Transitional package for mailx ren

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