Package: mini-dinstall
Version: 0.6.28.1
Severity: important
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch


when mini-dinstall is run using python 2.7, it fails to execute cleanly. The 
following error occurs:

Traceback (most recent call last):
  File "./mini-dinstall", line 196, in <module>
    stderr_handler = logging.StreamHandler(strm=sys.stderr)
TypeError: __init__() got an unexpected keyword argument 'strm'

*** /tmp/tmpXm_BLB
In Ubuntu, the attached patch was applied to achieve the following:

## ---------------- REPLACE THIS WITH ACTUAL INFORMATION ---------------------
## Please add all necessary information about why the change needed to go in
## Ubuntu, quote policy, spec or any other background material and why it can
## and should be used in Debian too.  If the patch is composed of multiple
## independent pieces, please send them as separate bug reports.
## ---------------- REPLACE THIS WITH ACTUAL INFORMATION ---------------------


  * mini-dinstall: Fix error using logging.StreamHandler (LP: #721413)


Thanks for considering the patch.


-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-3-generic (SMP w/2 CPU cores)
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru mini-dinstall-0.6.28.1ubuntu1/debian/changelog mini-dinstall-0.6.28.1ubuntu2/debian/changelog
diff -Nru mini-dinstall-0.6.28.1ubuntu1/minidinstall/version.py mini-dinstall-0.6.28.1ubuntu2/minidinstall/version.py
--- mini-dinstall-0.6.28.1ubuntu1/minidinstall/version.py	2010-10-21 08:40:38.000000000 +0200
+++ mini-dinstall-0.6.28.1ubuntu2/minidinstall/version.py	2011-02-18 20:09:35.000000000 +0200
@@ -1 +1 @@
-pkg_version = "0.6.28.1ubuntu1"
+pkg_version = "0.6.28.1ubuntu2"
diff -Nru mini-dinstall-0.6.28.1ubuntu1/mini-dinstall mini-dinstall-0.6.28.1ubuntu2/mini-dinstall
--- mini-dinstall-0.6.28.1ubuntu1/mini-dinstall	2010-10-21 01:58:32.000000000 +0200
+++ mini-dinstall-0.6.28.1ubuntu2/mini-dinstall	2011-02-18 20:07:20.000000000 +0200
@@ -193,7 +193,7 @@
     do_and_log('Changing mode of "%s" to %o' % (name, mode), os.chmod, name, mode)
 
 logger.setLevel(logging.DEBUG)
-stderr_handler = logging.StreamHandler(strm=sys.stderr)
+stderr_handler = logging.StreamHandler(stream=sys.stderr)
 stderr_handler.setLevel(loglevel)
 logger.addHandler(stderr_handler)
 stderr_handler.setLevel(loglevel)

Reply via email to