[Piuparts-devel] Bug#567190: piuparts: Please add an option to have a log level different of DUMP (with patch)

Fabrice Coutadeur fabricesp at ubuntu.com
Wed Jan 27 20:41:36 UTC 2010


Package: piuparts
Version: 0.38
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch

Hi,

The log generated by default of a local execution of piuparts (to test a package, for example) is very long and very complex to understand.
It would be useful to have an option that allow the end user to choose the level
of log he wants.

In my patch, I added a --log-level option, with 4 values: error, info, dump and debug. By default, the log level is still dump.
I also added an info message saying that the package has been successfully installed.

Hope it will be helpful.

Fabrice

*** /tmp/tmpbWfna7
In Ubuntu, we've applied the attached patch to achieve the following:

  * piuparts.py: added log-level option, to keep the log small. This option
    limits the output to info and error messages instead of default debug level.
    Also added an info message about successful installation of deb files.


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

Kernel: Linux 2.6.31-17-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmphxJjT0
Type: text/x-diff
Size: 1485 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20100127/134a7de7/attachment.diff>


More information about the Piuparts-devel mailing list