Bug#688338: sessioninstaller: Multipĺe typos in package description

2012-10-02 Thread Sebastian Heinlein
Am Freitag, den 21.09.2012, 16:23 -0300 schrieb Nicolás Alvarez: 
> Package: sessioninstaller
> Severity: minor
> 
> There are several typos in the package description. In the short
> description, it says "PackgeKit", should say "PackageKit" (missing 'a').
> 
> In the long description, GSreamer -> GStreamer (missing 't')
> and adpoted -> adopted (swapped letters).

Thanks. I will fix it in Ubuntu after the Quantal release to not loose
any translations just before a release.



signature.asc
Description: This is a digitally signed message part


Bug#690071: ecryptfs: corrupted files on a disk full event

2012-10-09 Thread Sebastian Heinlein
Package: src:linux
Version: 3.2.23-1
Severity: important

Dear Maintainer,

After a running into a full disk event with my ecrypts encrypted home directory
I get the following messages:

[ 1477.919780] Valid eCryptfs headers not found in file header region or
xattr region, inode 3328393
[ 1477.919788] Either the lower file is not in a valid eCryptfs format,
or the key could not be retrieved. Plaintext passthrough mode is not
enabled; returning -EIO

I see a lot of random broken files on my system:

~$ find $HOME/.Private/ -size 0c -exec ls '{}' \; | wc -l
84

See https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/957843

It seems that there are patches available by Ubuntu.

Thanks

-- Package-specific info:
** Version:
Linux version 3.2.0-3-amd64 (Debian 3.2.23-1) (debian-ker...@lists.debian.org) 
(gcc version 4.6.3 (Debian 4.6.3-8) ) #1 SMP Mon Jul 23 02:45:17 UTC 2012

** Command line:
BOOT_IMAGE=/boot/vmlinuz-3.2.0-3-amd64 
root=UUID=797bb6e0-5087-4e85-a05b-28278b12e581 ro quiet splash pcie_aspm=force 
i915.i915_enable_rc6=1 i915.lvds_downclock=1

** Tainted: O (4096)
 * Out-of-tree module has been loaded.

** Kernel log:
[ 1318.082537] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1318.082548] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1318.082574] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1318.082581] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1323.076714] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1323.076725] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1323.076751] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1323.076758] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1328.071473] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1328.071484] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1328.071510] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1328.071518] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1333.065588] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1333.065599] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1333.065625] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1333.065632] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1338.060585] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1338.060597] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1338.060622] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1338.060630] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1343.055335] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1343.055347] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1343.055372] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1343.055380] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1348.050229] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1348.050240] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1348.050266] Valid eCryptfs headers not found in file header region or xattr 
region, inode 3328393
[ 1348.050273] Either the lower file is not in a valid eCryptfs format, or the 
key could not be retrieved. Plaintext passthrough mode is not enabled; 
returning -EIO
[ 1353.045191] Valid eCryptfs headers not found in file header region or xattr 

Bug#690071: ecryptfs: corrupted files on a disk full event

2012-10-10 Thread Sebastian Heinlein
I had a short conversation with one of the upstream developers, Tyler
Hicks. It seems that there are still two other patches required: 
"For completeness, I wanted to point out two more patches which should
be added to the list I gave in comment 20. 821f749 introduced a
regression and these two patches are needed to fix the regression:

64e6651 eCryptfs: Call lower ->flush() from ecryptfs_flush()
7149f25 eCryptfs: Write out all dirty pages just before releasing the
lower file

Actually, 7149f25 is the only one required but I recommend 64e6651, as
well."

https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/957843/comments/22


The IRC chat: 
 tyhicks, hello
 glatzor: Hi
* mwhudson hat die Verbindung getrennt (Ping timeout: 246 seconds)
 tyhicks, I run an ecryptfs protected home dir on my debian
wheezy system and run into the corrupted files on disk full error
 tyhicks, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
+%09690071
* dholbach hat die Verbindung getrennt (Read error: Connection reset by
peer)
 tyhicks, you mentioned that some patches to fix this problem
have been applied in ubuntu. but I still get the problem with the
patches applied
 tyhicks, are there any further patches missing?
* dholbach (~daniel@ubuntu/member/dholbach) hat #ubuntu-devel betreten
 glatzor: You applied the 3 patches mentioned at the bottom of
that bug?
 tyhicks, right.
 tyhicks, with the applied patches the command to fill up the
disk failed correctly by a disk full error. I used dd if=/dev/zero
of=disk-full bs=1M
 tyhicks, but without the patches the dd command tries to write
for ever
* babyface__ hat die Verbindung getrennt (Quit: Ex-Chat)
 glatzor: With the patches applied, it sounds like things are
working correctly. Why do you think there is still a problem?
* TJ- (t...@yes.iam.tj) hat #ubuntu-devel betreten
* mvo hat die Verbindung getrennt (Quit: Ex-Chat)
 tyhicks, because I still get files of zero size in
$HOME/.Private/ that cause problems
* mvo (~e...@p5b09b69a.dip.t-dialin.net) hat #ubuntu-devel betreten
* tsdgeos hat die Verbindung getrennt (Remote host closed the
connection)
 glatzor: FYI, see
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/957843/comments/22
 Launchpad bug 957843 in eCryptfs "files in eCryptFS Private
directory get corrupted" [High,Fix released]
 glatzor: Those two extra patches don't fix the problem that
you're seeing, but they're needed if you carry the other three patches
 tyhicks, Is it ok if I add this conversation to the bug? I
will try with the other two patches
 glatzor: Sure
 glatzor: I'm going to have to step away shortly. If you're
sure that you're still seing zero length files, please file an upstream
eCryptfs bug at https://bugs.launchpad.net/ecryptfs/+filebug and I'll
take a look at it tomorrow.


Am Dienstag, den 09.10.2012, 12:33 -0700 schrieb Jonathan Nieder: 
> tags 690071 + upstream patch moreinfo
> quit
> 
> Hi Sebastian,
> 
> Sebastian Heinlein wrote:
> 
> > After a running into a full disk event with my ecrypts encrypted home 
> > directory
> [...]
> > I see a lot of random broken files on my system:
> [...]
> > https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/957843
> 
> Please test the attached patches against a 3.2.y kernel, for example
> using the following instructions:
> 
>  0. prerequisites
> 
>   apt-get install git build-essential
> 
>  1. get the kernel history, if you don't already have it
> 
>   git clone \
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> 
>  2. fetch point releases
> 
>   cd linux
>   git remote add stable \
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
>   git fetch stable
> 
>  3. configure, build, test
> 
>   git checkout stable/linux-3.2.y
>   cp /boot/config-$(uname -r) .config; # current configuration
>   scripts/config --disable DEBUG_INFO
>   make localmodconfig; # optional: minimize configuration
>   make deb-pkg; # optionally with -j for parallel build
>   dpkg -i ../; # as root
>   reboot
>   ... test test test ...
> 
> Hopefully it reproduces the bug, so
> 
>  4. try the patches
> 
>   cd linux
>   git am -3sc $(ls -1 /path/to/patches/0*)
>   make deb-pkg; # maybe with -j4
>   dpkg -i ../; # as root
>   reboot
>   ... test test test ...
> 
> Hope that helps,
> Jonathan


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



Bug#690071: ecryptfs: corrupted files on a disk full event

2012-10-10 Thread Sebastian Heinlein
Hello Jonathan und Thyler,

Applying all 5 patches fixed all issues for me.

I don't get any zero sized files anymore with a full disk (find
$HOME/.Private/ -size 0c). I can even login with the user having a full
disk (before often a broken .ICEauthority made this inpossible. I could
not see any data corruptions in applications (Evolution, Iceweasel).

The dd command which fills up the disk also exits correctly.

Thanks

$ dd if=/dev/zero of=disk-full
dd: Schreiben von „disk-full“: Auf dem Gerät ist kein Speicherplatz mehr
verfügbar
6579+0 Datensätze ein
6578+0 Datensätze aus
6898343936 Bytes (6,9 GB) kopiert, 75,1908 s, 91,7 MB/s

I see a lot of errors in dmesg, but these seem to be related to the full
disk write operation:

[  554.634486] ecryptfs_encrypt_page: Error attempting to write lower
page; rc = [-28]
[  554.634492] ecryptfs_write_end: Error encrypting page (upper index
[0x0054])
[  570.567506] ecryptfs_write_metadata_to_contents: Error attempting to
write header information to lower file; rc = [-28]
[  570.567517] ecryptfs_write_metadata: Error writing metadata out to
lower file; rc = [-28]
[  570.567524] Error writing headers; rc = [-28]
[  580.071153] ecryptfs_write_metadata_to_contents: Error attempting to
write header information to lower file; rc = [-28]
[  580.071164] ecryptfs_write_metadata: Error writing metadata out to
lower file; rc = [-28]


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



Bug#703217: software-properties: Duplicate Updates Mechansims with PackageKit

2013-03-16 Thread Sebastian Heinlein
Package: software-properties
Version: software-properties-gtk
Severity: important
Tags: patch

Hello,

PackageKit is now used by default in the GNOME desktop. Software-properties-gtk
proovides a way to configure the daily APT cron job. But the PackageKit already
has got an update mechanism and configuration options in the user interface. So
we end up with two separate configuration options that do not affect each
other.

Cheers,

Sebastian



-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: Hide the updates tab
 The GNOME desktop now uses PackageKit to fetch and install updates.
 Furthermore the GNOME and KDE PackageKit applications provide already
 a configuration option for the PackageKit update mechansim.
 But software-properties configures the daily APT cron job. 
 To avoid having two concurrent mechanisms this patch disables the updates
 tab in the software-properties user interface.
=== modified file 'data/gtkbuilder/main.ui'
--- old/data/gtkbuilder/main.ui	2013-03-17 05:47:24 +
+++ new/data/gtkbuilder/main.ui	2013-03-17 05:48:32 +
@@ -495,7 +495,7 @@
 
 
   
-True
+False
 False
 12
 18



Bug#572998: python-apt: Inconsitent return values in apt.package.Package.get_changelog

2010-03-07 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.93.3
Severity: normal

The method get_changelog of apt.package.Package will return an unicode
instance if the changelog could be downloaded. If the download fails it
will return an error string.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4. 0.7.25.3Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6 0.7.25.3APT utility programs
ii  libc62.10.2-6Embedded GNU C Library: Shared lib
ii  libgcc1  1:4.4.3-3   GCC support library
ii  libstdc++6   4.4.3-3 The GNU Standard C++ Library v3
ii  python   2.5.4-9 An interactive high-level object-o
ii  python-central   0.6.14+nmu2 register and build utility for Pyt
ii  python2.62.6.4-6 An interactive high-level object-o

Versions of packages python-apt recommends:
ii  iso-codes 3.14-1 ISO language, territory, currency,
ii  libjs-jquery  1.4.1-1JavaScript library for dynamic web
ii  lsb-release   3.2-23 Linux Standard Base version report

Versions of packages python-apt suggests:
ii  python-apt-dbg0.7.93.3   Python interface to libapt-pkg (de
ii  python-gtk2   2.16.0-2   Python bindings for the GTK+ widge
ii  python-vte1:0.22.5-2 Python bindings for the VTE widget

-- no debconf information



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



Bug#631184: python-aptdaemon: no ftp proxy support

2011-09-22 Thread Sebastian Heinlein
On Tue, Jun 21, 2011 at 04:21:54AM -0400, Hamish Moffatt wrote:
> Package: python-aptdaemon
> Version: 0.31+bzr413-1.1
> Severity: wishlist
> 
> Please add support for ftp via HTTP proxies.
> 
> -- System Information:
> Debian Release: 6.0.1
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.38.3-linode32 (SMP w/4 CPU cores)
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash

Actually I plan to remove the HTTP proxy support per transaction.
It is just a security risk, since we want to allow updating the cache
or upgrading the system to every console user on a desktop system.

Perhaps it makes sense to add a property on the daemon interface which
would modify the apt configuration to support package proxies.


signature.asc
Description: Digital signature


Bug#631261: aptdaemon: no error for sources entries with unknown hosts

2011-09-22 Thread Sebastian Heinlein
Actually libapt has a good a very poor warning and error system. We
just cannot catch warning from libapt to stdout.


signature.asc
Description: Digital signature


Bug#631183: python-aptdaemon: proxy server does not apply to update_cache transactions

2011-09-22 Thread Sebastian Heinlein
On Tue, Jun 21, 2011 at 04:21:04AM -0400, Hamish Moffatt wrote:
> aptdaemon does not apply the http proxy to update cache transactions,
> only package install/upgrade transactions.

See Bug#631184 for a short rationale why this feature should go away
at all.


signature.asc
Description: Digital signature


Bug#707768: Workaround

2013-08-15 Thread Sebastian Heinlein
Am Donnerstag, den 15.08.2013, 13:38 +0200 schrieb Julian Andres Klode:
> On Thu, Aug 15, 2013 at 11:46:49AM +0200, Julian Andres Klode wrote:
> > Control: tag -1 pending
> > 
> > On Wed, Aug 14, 2013 at 08:48:01PM -0600, Neil Mayhew wrote:
> > > For those of you frustrated at the time it's taking to fix this,
> > > here's a temporary workaround that might help:
> > 
> > I'm sorry that it takes so long. I prepared a new upload a month ago,
> > but it has multiple errors in the test suite. I reported the problem
> > to upstream, but received no answer. I just uploaded it with a disabled
> > test suite, as the code seems to work, and I want this bug closed. This
> > release is 1.0-1, and has to go through binary NEW; I hope it does not
> > take too long.
> 
> I'm happy to say that I just uploaded 1.1.1-1 as well; which fixes the
> problems in the test suite (upstream missed the bug report, but reacted
> after I wrote a comment). Once this passed NEW, everything should be
> working again.

Thanks Julian.



signature.asc
Description: This is a digitally signed message part


Bug#674223: python3-defer: missing dependency on python3

2012-05-29 Thread Sebastian Heinlein
Am Donnerstag, den 24.05.2012, 00:04 +0200 schrieb Jakub Wilk: 
> Package: python3-defer
> Version: 1.0.6-1
> Severity: serious
> Justification: Policy 3.5
> 
> python3-defer doesn't depend on python3. Perhaps it has something do to 
> with these build-time warnings:
> 
> dpkg-gencontrol: warning: Depends field of package python3-defer: unknown 
> substitution variable ${python:Depends}
> dpkg-gencontrol: warning: package python3-defer: unused substitution variable 
> ${python3:Depends}

Thanks Jakub. I will fix it soon.




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



Bug#636924: software-center oudated.

2011-10-26 Thread Sebastian Heinlein
Software-center has got some hard coded requirements which are not
available on Debian. So we have to workaround them first.

See, 
https://code.launchpad.net/~glatzor/software-center/portability/+merge/80448 


signature.asc
Description: Digital signature


Bug#773791: network-manager-strongswan: does not seem to support EAP_IDENTITY

2016-08-01 Thread Sebastian Heinlein
Hello Julian,

Please check if libstrongswan-extra-plugins and
libcharon-extra-plugins are installed.

This fixed the problem for me.

Cheers,

sebastian


signature.asc
Description: PGP signature


Bug#468132: ITP: packagekit -- PackageKit provides a distribution neutral interface to manage software packages. It provides a system wide daemon that performs tasks like refreshing the cash, updating

2008-02-27 Thread Sebastian Heinlein
Package: wnpp
Severity: wishlist
Owner: Sebastian Heinlein <[EMAIL PROTECTED]>


* Package name: packagekit
  Version : 0.1.8
  Upstream Author : Richard Hughsie <[EMAIL PROTECTED]>
* URL : http://www.packagekit.org
* License : GPL2+
  Programming Lang: C, Python
  Description : PackageKit provides a distribution neutral interface to 
manage software packages. It provides a system wide daemon that performs tasks 
like refreshing the cash, updating, installing and removing software 
independetly from the user interface. By default, PackageKit uses PolicyKit for 
user authentication. This allows to specify with fine-grained control what your 
users can and cannot do.

(Include the long description here.)

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#468132: ITP: packagekit [...]

2008-02-27 Thread Sebastian Heinlein

Am Mittwoch, den 27.02.2008, 11:28 +0100 schrieb Guus Sliepen:
> On Wed, Feb 27, 2008 at 08:53:04AM +0100, Sebastian Heinlein wrote:
> 
> > * Package name: packagekit
> >   Description : PackageKit provides a distribution neutral interface to 
> > manage software packages. It provides a system wide daemon that performs 
> > tasks like refreshing the cash, updating, installing and removing software 
> > independetly from the user interface. By default, PackageKit uses PolicyKit 
> > for user authentication. This allows to specify with fine-grained control 
> > what your users can and cannot do.
> > 
> > (Include the long description here.)
> 
> Debian packages have both a short description and a long one. I also see
> you made some spelling errors. I suggest the following short and long
> description:
> 
> Description: distribution neutral software package manager
>  PackageKit provides a distribution neutral interface to manage
>  software packages. It provides a daemon that refreshes the package
>  cache, updates, installs and removes packages independent of the user
>  interface.
>  .
>  By default, PackageKit uses PolicyKit to provide fine-grained access
>  control.

Thanks.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#468132: ITP: packagekit -- a distribution neutral interface to manage software packages

2008-10-30 Thread Sebastian Heinlein
Am Dienstag, den 28.10.2008, 19:58 +0100 schrieb Stephan Peijnik:
> Hello,
> 
> I just noticed that packagekit has not been packaged for Debian yet and
> stumbled across this ITP.
> 
> I just wanted to ask what the status of this ITP is. Has there been some
> progress? Even though I had a quick look at the code on
> https://code.edge.launchpad.net/packagekit/ no Debian package is
> available yet. Is there any specific reason for this?
> 
> Regards,
> 
> Stephan

Hello,

there are some concerns of Debian developers against the non
interactiveness of PackageKit. So I want to have a working and mature
version uploaded to Debian to raise the acceptance.

But it this will happen in the near future.

The packaging for Debian can be found here:

lp:~glatzor/packagekit/packagekit-debian

Cheers,

Sebastian




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#468132: wnpp: 468132: packagekit: debdelta support?

2008-12-02 Thread Sebastian Heinlein
Am Mittwoch, den 03.12.2008, 10:57 +0900 schrieb Paul Wise:
> Hi,
> 
> Does packagekit have support for using debdelta files to upgrade
> packages? If not, please suggest such a feature upstream.

The apt backend of PackageKit is build on top of Python APT. So you you
get all features of APT. If you want to have binary patches this should
be implemented in APT. Not discussing the issues involved here.

Cheers,

Sebastian




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#523369: [PATCH] Only rebuild output if the input changed.

2009-04-10 Thread Sebastian Heinlein
Hello, 

At first I have to say that I appreciate your recent work on all the
python packages a lot.

But it seems that you have missed the attachment.

Cheers,

Sebastian




signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Bug#523997: python-apt: Package class should allow to set the candidate version

2009-04-14 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.7.1+nmu1
Severity: wishlist
Tags: patch

The Package class should allow to set its the candidate version.

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.7-6-4. 0.7.20.2Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6 0.7.20.2APT utility programs
ii  libc62.7-18  GNU C Library: Shared libraries
ii  libgcc1  1:4.3.2-1.1 GCC support library
ii  libstdc++6   4.3.2-1.1   The GNU Standard C++ Library v3
ii  lsb-release  3.2-20  Linux Standard Base version report
ii  python   2.5.2-3 An interactive high-level object-o
ii  python-central   0.6.8   register and build utility for Pyt

python-apt recommends no packages.

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)

-- no debconf information
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: ren...@unstable.virtual-20090410202703-krdd15z5xhoz11h0
# target_branch: ../debian-sid/
# testament_sha1: e6d468f392106808f743f3e3c67a38c1a2970026
# timestamp: 2009-04-10 22:34:15 +0200
# base_revision_id: j...@debian.org-20090401154054-zh33a3avjszl3fg7
# 
# Begin patch
=== modified file 'apt/package.py'
--- apt/package.py  2009-04-01 14:27:15 +
+++ apt/package.py  2009-04-10 20:27:03 +
@@ -874,6 +874,12 @@
 
 # depcache actions
 
+def set_candidate(self, version):
+"""Set the candidate version of the package."""
+self._pcache.cachePreChange()
+self._pcache._depcache.SetCandidateVer(self._pkg, version._cand)
+self._pcache.cachePostChange()
+
 def markKeep(self):
 """Mark a package for keep."""
 self._pcache.cachePreChange()

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWWKjHTEAAZffgEQQUWf//3pC
TQCwUAP2a9p1c7qJ7m9nQkokno09CekGCaGkxMg9I0AAaCSgRiaUw0anqaNAAGmgNAACSEmm
o1T8Impp+qe0p6TPVD0g0xpDTJpkDaqamQyDRo0GmhoA0JJBNTNDUxPVR+hNTQ9IaaA0Gmho
aORXjzaCvZjWbPhIt1SWcYpsvqtc8Br2ym/DEkoI2afUfa9hml2njKZa9hU5bX2ajkh/xb6cXdqj
x41yNDDMPhEHnI5iOU+OOq1rof1trp0cz8BVGx4ZB+/A/Jv1jMo3D9ldPshwusXvPao5yvNfvOY4
GH4oAaA5TFwSyqjRtvKxOOoh8xK8LjcKBOLqEaypUQmLKnVciCT2iHiKHLZslSPaRweeolqcja9X
C2lI6mRuhhG1xjPkcLLz4aL2qaNeAjCLLxnfFEQiyUUGAhCBU0JCtjicU44ZEdaGcFcrMOlWkRiS
vBk44PEz38SxSzgQJG8xIEC8NxluoWYF9+TjBRW1NW8Jwr7CxxQ7CyBdtpgyFXHtRLksmUjE35PK
oE0xAeTJm90LUTMKK0sGLLmxJGwyEPMzKRIwMRM1ziTrIDXyFROeRCGoXatxgUYa2H2+lQ3Nowf5
OG3icPSJuTZ/rLqCxSSua5kx3yIjLUBBQ98QymZGeTGUFSqngfNXdhwWxW0atUhggI2dM4SaAJB6
1GkqOBvvESWwWoHuFrLE8tD9DildUvciN6O+a92Isua0CaTVX6XZU6yp5LyY4HJdWVbgbdnO4iMY
Wm60ZtykebOlDiSaxYFA+OGQfBhF2EVBNmTRAZGh0C7w/Ge34GpNFTt+fSe1ncxhmcDPAl5zmOyl
7J8y0glw3jt2A7ljIIeHEKaWvl+6i60RA8UyLP82lLLA1CpuVCNwElKOtRqIvJS5poKCUrXrr2WM
W+7IESkhTAPtPFZtFWm0gxK4qTRSchPV7pxN3g3OuKm6kVo54BpmSEsHxFMchSJAH2SQ7Wk4
WVdSaMVZLuhsHyMoDDBEDRjCJ+e7DnTc63qZ4Y2H6H9lc+UmPCGBkGJclBIGRJ3XI+d6UwhkOnW/
fjhYbV0rIKAdAwZX0RByBydAv7HTcKd6tZXVUp7VfMIN0y0xRDJu+xwTDh5RXW8EzKmSFTkuexOs
Ckmq9uQHifoSaNTKhmzPh/U2NjGk0bgZJ6LQacUnwojvTx2r3KB1F7p6/oSAqSHbTcUZWTuIThQU
MrmToKxHcaP0uJsLw86UEpcAQJKqMKjd1R+UTiCCNjHhjbqJilsNavU/+LuSKcKEgxUY6Yg=


Bug#523998: python-apt: Package class should have a get_version method

2009-04-14 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.7.1+nmu1
Severity: wishlist
Tags: patch

The Package class should provide a nice way to get a corresponding Version 
instance by specifing the version string.

E.g.: Package.get_version("242-1")

See the attached patch

Cheers,

Sebastian

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.7-6-4. 0.7.20.2Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6 0.7.20.2APT utility programs
ii  libc62.7-18  GNU C Library: Shared libraries
ii  libgcc1  1:4.3.2-1.1 GCC support library
ii  libstdc++6   4.3.2-1.1   The GNU Standard C++ Library v3
ii  lsb-release  3.2-20  Linux Standard Base version report
ii  python   2.5.2-3 An interactive high-level object-o
ii  python-central   0.6.8   register and build utility for Pyt

python-apt recommends no packages.

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)

-- no debconf information
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: ren...@unstable.virtual-20090410204237-qwwl1a7f9yy1ogci
# target_branch: ../debian-sid/
# testament_sha1: b87ebcdf3d99a10932db8528b7f3b8365763ba41
# timestamp: 2009-04-10 22:43:31 +0200
# base_revision_id: j...@debian.org-20090401154054-zh33a3avjszl3fg7
# 
# Begin patch
=== modified file 'apt/package.py'
--- apt/package.py  2009-04-01 14:27:15 +
+++ apt/package.py  2009-04-10 20:42:37 +
@@ -872,6 +872,13 @@
 """
 return [Version(self, ver) for ver in self._pkg.VersionList]
 
+def get_version(self, version):
+"""Get the Version instance matching the given version string."""
+for ver in self.versions:
+if ver.version == version:
+return ver
+return None
+
 # depcache actions
 
 def markKeep(self):

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWb2VsC0AAZNfgERUUWf//3LD
TQCwUAP2bxuNodI22PYSSKekamaT0j0einim1DRoGgAAyGglEpjRmknkiD1GgAAEiQIQ
NTUeU/VPKA009QyAaMnqHqDQMpI0D0TRoDBA0aGgMgA00wEkkaaTTJiZU9o0KeU/SZJtPSm1AGTR
o0VodM82wW+ebuNTHRP2cNBGFSKtnV2QB2LnRWOVECoXG/QfLFjc8TlOqeBOCKLm6/nr5Ug46O7t
mXX2KzrH2pHF3MsmY0rInKkHn6t1eGXTu2anjLbxd1/q540JUv2zvIPn6PkuoZtXS6NQYBVxFRnU
NReyNsVOEGtxOSxKk6hJrfFdqkExO7kJVB2CbqIiE5PXAYQ4fyMlmRGmQUsoR7Lt9RH8zM47SnaX
uVMZnH2NqYyOeaRVltwvXGjNlXxEaBV9NIEKi2wjvLYEAnIyaG9SKLdbeRnStvMeCpbJSMlujM9T
gi9agYSIFMURziQ9LsMSw1zOPIDDLePgkklkTQSdgVo4YUjhWllBiU7kUXTnuZRIs1Ijy6+wYZMC
8kKJUbb7rBihSiSHsqkSwQmQLqE7TSKi0vE4+bdhAnJjMRzizp8ZOD+8WKmYKWOjHd6UXNKO5Noa
ZweDf1nDbK0FnHVP2hmU0sXi0zsdc+sBqIgaseM362NcQ9PmpO5UeBxViepIMDrO2N7BTEe4YqRg
XiqNRYf5iZLZ5twK5xYGwzm4P4HVLwuKHIYfZQLngEEtC81zeQK84wOSwzLgHQtOY4vIjMbSFsTJ
W4iniY+C3zU4lMhiZVEmjMiKCU8rjyD75dZ44Ti54uGjlLwDuCdoGk5pbiU4Eqco6uaAY9cQmtdh
sJf1cLiepIAyZDKFlL4/6MBeGk9i9LFlSMig/QQpOl4tIMMDx5Wbl48Oza35ZeMRWDZVgKYDTf8G
NigK4sTWAwqVNtep0wXtE7usOV9a7FR6I24D85SlPLcx4hkmxtCBstkfmSDkSW9oH6KvBiRVFwMZ
gcljVYrFuJ65LEmK3l+3Ot3OoqiQ+o4T3HRursKkpXwpMjQQpg0jAklJUCaYft/G09SUyAMyHJy3
d8kBalirwgJcRg9S90qKspwD3g5TPU9EmdqYxUCQK5ct++Ni6qRUytU4cDBbdZKZE7C6e7vaeiKt
SzBnzbCS5lEtYUQqZJQQu+RUb5z05slgbsGk2MTiyuL0mzXYLh8VKnBdCkQK3IotIigEsMC5rVXQ
SIC9Mak1pahLBMuCPB3UPZ6pOQprlISVjmQMAQEKbEEsAC8VCrCDxBk4jhwKiax3eJ+JPhrE+cyr
eUP8XckU4UJC9lbAtA==


Bug#523369: [PATCH] Only rebuild output if the input changed.

2009-05-29 Thread Sebastian Heinlein
Am Freitag, den 10.04.2009, 12:50 +0200 schrieb Julian Andres Klode:
> On Fri, Apr 10, 2009 at 12:45:44PM +0200, Sebastian Heinlein wrote:
> > Hello, 
> > 
> > At first I have to say that I appreciate your recent work on all the
> > python packages a lot.
> > 
> > But it seems that you have missed the attachment.
> > 
> > Cheers,
> > 
> > Sebastian
> > 
> > 
> Oh, sorry. I attached the merge directive in this email.

Sorry for the long delay. I merged your patch into the debian branch. 
It will be part of the next upload.

Cheers,

Sebastian


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Bug#532338: python-apt: Cache class should provide a broken attribute

2009-06-08 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.7.1+nmu1
Severity: wishlist
Tags: patch

The Cache class should provide an API to determinate the existance of
broken dependencies. Currently you have to access the private _depcache.

Cheers,

Sebastian

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

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

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.7- 0.7.20.2+lenny1 Advanced front-end for dpkg
ii  apt-utils [libapt-inst-l 0.7.20.2+lenny1 APT utility programs
ii  libc62.7-18  GNU C Library: Shared libraries
ii  libgcc1  1:4.3.2-1.1 GCC support library
ii  libstdc++6   4.3.2-1.1   The GNU Standard C++ Library v3
ii  lsb-release  3.2-20  Linux Standard Base version report
ii  python   2.5.2-3 An interactive high-level object-o
ii  python-central   0.6.8   register and build utility for Pyt

python-apt recommends no packages.

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)

-- no debconf information
=== modified file 'apt/cache.py'
--- apt/cache.py2009-04-01 14:27:15 +
+++ apt/cache.py2009-06-08 16:12:36 +
@@ -286,6 +286,11 @@
 """ Unmark all changes """
 self._depcache.Init()
 
+@property
+def broken(self):
+"""True if the cache contains packages with broken dependencies."""
+return self._depcache.BrokenCount > 0
+
 # cache changes
 
 def cachePostChange(self):



Bug#532660: python-apt: DpkgInstallProgress should support more than one package

2009-06-10 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.10.3+b1
Severity: wishlist

The run method of DpkgInstallProgress class only works with one package.
Furthermore it sets the debfile and debname attribute which will be used by
the update_status method.

I would like to overwrite the run method in PackgeKit to support more than one
Deb file and different dpkg options. So it would be nice to extract the package
names in update_status from the dpkg status message instead of reusing
the debname attribute.

See attached patch.

Cheers,

Sebastian


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

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

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.7 0.7.21 Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.21 APT utility programs
ii  libc6 2.9-13 GNU C Library: Shared libraries
ii  libgcc1   1:4.4.0-5  GCC support library
ii  libjs-jquery  1.3.3-1JavaScript library for dynamic web
ii  libstdc++64.4.0-5The GNU Standard C++ Library v3
ii  lsb-release   3.2-22 Linux Standard Base version report
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.11 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.10-1 ISO language, territory, currency,

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-gtk2   2.14.1-3   Python bindings for the GTK+ widge
ii  python-vte1:0.20.1-1 Python bindings for the VTE widget

-- no debconf information
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: ren...@ubuntu.virtual-20090530230548-1xm8asn5qh7t75oz
# target_branch: ../jak
# testament_sha1: 1ae02a7da527170b44c6b05027e230b2b8ee478e
# timestamp: 2009-05-31 02:23:21 +0200
# base_revision_id: j...@debian.org-20090609072541-k4i16rqvd74f5no2
# 
# Begin patch
=== modified file 'apt/progress/__init__.py'
--- apt/progress/__init__.py2009-06-08 14:55:53 +
+++ apt/progress/__init__.py2009-05-30 23:05:48 +
@@ -367,13 +367,11 @@
 
 def run(self, debfile):
 """Start installing the given Debian package."""
-self.debfile = debfile
-self.debname = os.path.basename(debfile).split("_")[0]
 pid = self.fork()
 if pid == 0:
 # child
 res = os.system("/usr/bin/dpkg --status-fd %s -i %s" % \
-(self.writefd, self.debfile))
+(self.writefd, debfile))
 os._exit(os.WEXITSTATUS(res))
 self.child_pid = pid
 res = self.wait_child()
@@ -399,10 +397,11 @@
 print "got garbage from dpkg: '%s'" % self.read
 self.read = ""
 break
+pkg_name = statusl[1].strip()
 status = statusl[2].strip()
 #print status
 if status == "error":
-self.error(self.debname, status)
+self.error(pkg_name, status)
 elif status == "conffile-prompt":
 # we get a string like this:
 # 'current-conffile' 'new-conffile' useredited distedited

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWVOkUcAAAvL/gABUAEBRZ///
V0IJCrBQBf7jYAaAGoptTTRpgmmmh6I0zSGmgGTAQMc0xMACYAJgABMAATBKBCoeU8pm
oMIaAAAGag0NBzTEwAJgAmAAEwABMCpRAgaACADQVN6J6TInigyempbx1049Zon22+z8q9DjPlxy
pYUTUoxY6KWLUrRDHMxtsECtGVsCISS8luh4G0KCqKpHqiaYJmZRioMDOsLao62WXF1Y2nOzupmd
L8J/D53KRA4xvvrfdHmaGYvFCj1du9IIGn9PAatvcxcncYiRcJhMyC4kHeSSfhbAIY2UHBgCC4Ni
wIHsr/Ljzhzn3FJoWJaxD+T1R1T0csuHUZeOT8Hj6nF/VqGou4n8DDx01rWx3d3swSa6tSzmSa3N
ipXeGRRFahVMCyyS21mOiy9IoZsDl7M74WMZLslKx52Y/RdO21oa2Vl/Rqux69HB9WVTI3FXYYUM
69Y926WnDzxbiuc/rUtbmdycRZbpr8sOhsMEjYt1sA+p0szLHFkWSdDSvWsVrSuZ+i2DeGLMtwWI
6VrCWqZ1LNCjLMpg3qNKix3ozOzsz03ZMyLLYzpZNxxW3utoXsIrolNS1L8Si8tNTije4r5R+H6z
5YI2szo6O8sbeGDg24BvmZG+fFal3Cpg5Omb08ktustzFkSVFtJT150KxTLCKFCotGTVUwRTCKbK
VjJmzR80s54b72VgyNao0LXsma/HJJXGUZWpmd9zbyZmUpVezbmC98kualurBkWWltYStNCrPaxX
aS3HBzO5u3ZWJrKZzFpGKaJbebJL+A/dKKDSofwoeXY8l5RpeqpVyO2ilDe+58HusYKl6irsWvMz
lshppRQpKf81a7aVmwmRQ89eVY8zwOksLWs/JnfVmLm40MLFI1sqkn0WN/pkwpSfOTtdy4eLuWot
d7iteSj11PGPH0WYzEc2zwUMJKvyXofPw4jgsWZqmRZoxJXUnVseUZ0L788/B7bpuc3N8nsoueix
1LI5uSRx9UWu93OBlezL8LmbqbHJjDRbVQ4/Eorbd5a7GxcujHH9Z2sicVV7k0o2OLg1/yaewxR9
P07+fOurmrc53y+lLrqRqz97e7lv7XP8MWUxMUOztlVMVsmhq/rpf28Y83Kni+HJpxf20t4+K9Dw
UdiURjyzL9vprGUyTlJQMEq5O3W7HQ1uB2O2cVVyxyWM3Waj7PHx81HhSMynow9+J7tocJ+Cg9On
i+qU7hQWJoprkpqmirYVdZ8jc+aOlgczR0Cw60dTp5Sa8y1/vrWr28NnmgytazaueHH3o2z7ztKn
k2ybXVchU+qM8lTDxl

Bug#532338: python-apt: Cache class should provide a broken attribute

2009-06-16 Thread Sebastian Heinlein
Am Freitag, den 12.06.2009, 19:45 +0200 schrieb Julian Andres Klode:
> On Mon, Jun 08, 2009 at 06:17:32PM +0200, Sebastian Heinlein wrote:
> > Package: python-apt
> > Version: 0.7.7.1+nmu1
> > Severity: wishlist
> > Tags: patch
> > 
> > The Cache class should provide an API to determinate the existance of
> > broken dependencies. Currently you have to access the private _depcache.
> I prefer to export the number of broken packages instead of a boolean
> value. You can still use it as a boolean value, but it has the benefit
> that you can also know how many are broken.
> 
> But we should probably export some more of those _count attributes, so
> nobody says after the release of 0.8.0: Hey, I need the attribute
> inst_count.

Totally valid point.


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Bug#532660: python-apt: DpkgInstallProgress should support more than one package

2009-06-16 Thread Sebastian Heinlein
Am Freitag, den 12.06.2009, 19:52 +0200 schrieb Julian Andres Klode:

> I have merged it in a modified form. More precisely, I added the debfile and
> debname attributes again when running in 0.7 compatibility mode, to not break
> application relying on the existence of those attributes.
> 
> You may want to propose another wording for the changelog, 
> see http://bzr.debian.org/loggerhead/users/jak/python-apt/jak/revision/272

Thanks a lot.


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Bug#379383: State?

2007-05-21 Thread Sebastian Heinlein
Hello,

I would require this package for the gnome-app-install package. So do
you still plan to upload this package anytime?

Cheers,

Sebastian


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Bug#545474: closed by Julian Andres Klode (Bug#545474: fixed in python-apt 0.7.13.3)

2009-09-16 Thread Sebastian Heinlein
Thanks a lot.


signature.asc
Description: Digital signature


Bug#542699: MarkUpgrade always marks a package as explicitly installed

2009-08-20 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.12.1
Severity: important

The apt.Package.markUpgrade() methods marks a package as not
automatically
installed:

>>> import apt
>>> c = apt.Cache()
>>> p = c["mobile-broadband-provider-info"]
>>> c._depcache.IsAutoInstalled(p._pkg)
1
>>> p.markUpgrade()
>>> c._depcache.IsAutoInstalled(p._pkg)
0

Instead it should keep the current state. A common use case for the
markUpgrade
call is an user on low bandwith who only upgrades in small sub sets.

Cheers,

Sebastian


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.22.2   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.22.2   APT utility programs
ii  libc6 2.9-23 GNU C Library: Shared
libraries
ii  libgcc1   1:4.4.1-1  GCC support library
ii  libstdc++64.4.1-1The GNU Standard C++
Library v3
ii  lsb-release   3.2-23 Linux Standard Base version
report
ii  python2.5.4-2An interactive high-level
object-o
ii  python-central0.6.11 register and build utility
for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.10.2-1   ISO language, territory,
currency,
ii  libjs-jquery  1.3.3-1JavaScript library for
dynamic web

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-gtk2   2.14.1-3   Python bindings for the GTK
+ widge
ii  python-vte1:0.20.5-1 Python bindings for the VTE
widget

-- no debconf information
=== modified file 'apt/package.py'
--- apt/package.py	2009-08-03 13:59:35 +
+++ apt/package.py	2009-08-20 20:28:51 +
@@ -1158,7 +1158,8 @@
 def mark_upgrade(self):
 """Mark a package for upgrade."""
 if self.is_upgradable:
-self.mark_install()
+auto = self._pcache._depcache.IsAutoInstalled(self._pkg)
+self.mark_install(from_user=auto)
 else:
 # FIXME: we may want to throw a exception here
 sys.stderr.write(("MarkUpgrade() called on a non-upgrable pkg: "



signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Bug#542705: python-apt: Forced use of the private depcache to resolve complex situations

2009-08-20 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.12.1
Severity: normal

In PackageKit apt backend I use the problem resolver directly e.g. to make sure
that all given packages are installed which are queued for a transaction.

Just calling apt.Packagek.mark_install for each package could unmark the 
installation of a previous package during the resolver call (autoFix=True).
So I have to protect all the to be installed packages in the resolver.

The factory apt_pkg.GetPkgProblemResolver requires the private _depcache of
an apt.Cache. Furthermore I need the IsInstBroken and IsNowBroken method for
a more detailed error reporting.

It would be nice to habe a stable API for this.

Cheers,

Sebastian

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.22.2   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.22.2   APT utility programs
ii  libc6 2.9-23 GNU C Library: Shared libraries
ii  libgcc1   1:4.4.1-1  GCC support library
ii  libstdc++64.4.1-1The GNU Standard C++ Library v3
ii  lsb-release   3.2-23 Linux Standard Base version report
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.11 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.10.2-1   ISO language, territory, currency,
ii  libjs-jquery  1.3.3-1JavaScript library for dynamic web

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-gtk2   2.14.1-3   Python bindings for the GTK+ widge
ii  python-vte1:0.20.5-1 Python bindings for the VTE widget

-- no debconf information



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



Bug#542773: python-apt: The (inst|keep|broken|del)_count attributes of apt.Cache are broken

2009-08-21 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.12.1
Severity: important


See the attached patch.

Cheers,

Sebastian


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.22.2   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.22.2   APT utility programs
ii  libc6 2.9-23 GNU C Library: Shared libraries
ii  libgcc1   1:4.4.1-1  GCC support library
ii  libstdc++64.4.1-1The GNU Standard C++ Library v3
ii  lsb-release   3.2-23 Linux Standard Base version report
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.11 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.10.2-1   ISO language, territory, currency,
ii  libjs-jquery  1.3.3-1JavaScript library for dynamic web

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-gtk2   2.14.1-3   Python bindings for the GTK+ widge
ii  python-vte1:0.20.5-1 Python bindings for the VTE widget

-- no debconf information
=== modified file 'apt/cache.py'
--- apt/cache.py2009-07-30 13:00:44 +
+++ apt/cache.py2009-08-20 23:13:29 +
@@ -345,22 +345,22 @@
 @property
 def broken_count(self):
 """Return the number of packages with broken dependencies."""
-return self._depcache.broken_count
+return self._depcache.BrokenCount
 
 @property
 def delete_count(self):
 """Return the number of packages marked for deletion."""
-return self._depcache.del_count
+return self._depcache.DelCount
 
 @property
 def install_count(self):
 """Return the number of packages marked for installation."""
-return self._depcache.inst_count
+return self._depcache.InstCount
 
 @property
 def keep_count(self):
 """Return the number of packages marked as keep."""
-return self._depcache.keep_count
+return self._depcache.KeepCount
 
 
 # - experimental interface



Bug#542940: python-apt: Translated package descriptions are broken

2009-08-22 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.12.1
Severity: important

Translated descriptions of packages are not shown.


unstable:~$ apt-cache show synaptic
Package: synaptic
[...]
Description-de: Grafischer Paket-Verwalter
 Synaptic ist ein grafisches Paketverwaltungsprogramm, das auf GTK+ und
 APT basiert. Synaptic ermöglicht es Ihnen auf eine benutzerfreundliche
 Art, Pakete zu installieren, zu aktualisieren und zu entfernen.
 .
 Neben diesen grundlegenden Funktionen bietet es folgende Eigenschaften:
  * Suchen und Filtern der Liste verfügbarer Pakete
  * Durchführung »intelligenter« System-Aufrüstungen
  * Bereinigung defekter Paketabhängigkeiten
  * Editierung der Liste benutzter Depots (sources.list)
  * Abruf des letzten Changelogs eines Paketes
  * Paket-Konfiguration durch das debconf-System
  * Durchblättern aller zu einem Paket verfügbaren Dokumentation (dwww ist
erforderlich)
Tag: admin::package-management, implemented-in::c++, interface::x11, 
role::program, scope::application, suite::debian, uitoolkit::gtk, 
works-with::software:package, x11::application

unstable:~$ python
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import apt
>>> apt.Cache()["synaptic"].candidate.description
u'Synaptic is a graphical package management tool based on GTK+ and APT. 
Synaptic enables you to install, upgrade and remove software packages in a user 
friendly way.\n\nBesides these basic functions the following features are 
provided:\n* Search and filter the list of available packages\n* Perform smart 
system upgrades\n* Fix broken package dependencies\n* Edit the list of used 
repositories (sources.list)\n* Download the latest changelog of a package\n* 
Configure packages through the debconf system\n* Browse all available 
documentation related to a package (dwww is required)\n'



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.22.2   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.22.2   APT utility programs
ii  libc6 2.9-23 GNU C Library: Shared libraries
ii  libgcc1   1:4.4.1-1  GCC support library
ii  libstdc++64.4.1-1The GNU Standard C++ Library v3
ii  lsb-release   3.2-23 Linux Standard Base version report
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.11 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.10.2-1   ISO language, territory, currency,
ii  libjs-jquery  1.3.3-1JavaScript library for dynamic web

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-gtk2   2.14.1-3   Python bindings for the GTK+ widge
ii  python-vte1:0.20.5-1 Python bindings for the VTE widget

-- no debconf information



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



Bug#542965: python-apt: Cache does not support unicode as package key

2009-08-22 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.12.1
Severity: important


The error message:

>>> import apt
>>> apt.Cache()[u"xterm"]
Traceback (most recent call last):
 File "", line 1, in 
 File "/usr/lib/python2.5/site-packages/apt/cache.py", line 139, in __getitem__
pkg = self._weakref[key] = Package(self, self._cache[key])
TypeError

Cheers,

Sebastian

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.22.2   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.22.2   APT utility programs
ii  libc6 2.9-23 GNU C Library: Shared libraries
ii  libgcc1   1:4.4.1-1  GCC support library
ii  libstdc++64.4.1-1The GNU Standard C++ Library v3
ii  lsb-release   3.2-23 Linux Standard Base version report
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.11 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.10.2-1   ISO language, territory, currency,
ii  libjs-jquery  1.3.3-1JavaScript library for dynamic web

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-gtk2   2.14.1-3   Python bindings for the GTK+ widge
ii  python-vte1:0.20.5-1 Python bindings for the VTE widget

-- no debconf information



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



Bug#543428: python-apt: Export if a package is an essential one

2009-08-24 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.12.1
Severity: wishlist

Currently this information can only be accessed by using private API:
apt.package.Package._pkg.Essential


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.22.2   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.22.2   APT utility programs
ii  libc6 2.9-23 GNU C Library: Shared libraries
ii  libgcc1   1:4.4.1-1  GCC support library
ii  libstdc++64.4.1-1The GNU Standard C++ Library v3
ii  lsb-release   3.2-23 Linux Standard Base version report
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.11 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.10.2-1   ISO language, territory, currency,
ii  libjs-jquery  1.3.3-1JavaScript library for dynamic web

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-gtk2   2.14.1-3   Python bindings for the GTK+ widge
ii  python-vte1:0.20.5-1 Python bindings for the VTE widget

-- no debconf information
=== modified file 'apt/package.py'
--- apt/package.py  2009-08-21 15:00:03 +
+++ apt/package.py  2009-08-24 23:09:09 +
@@ -652,6 +652,11 @@
 This returns the same value as ID, which is unique."""
 return self._pkg.ID
 
+@property
+def essential(self):
+"""Return True if the package is an essential part of the system."""
+return self._pkg.Essential
+
 @DeprecatedProperty
 def installedVersion(self):
 """Return the installed version as string.



Bug#545474: python-apt: Updating cache doesn't fail if host names cannot be resolved

2009-09-07 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.13.2
Severity: normal

If the hostnames of remote repositories cannot be resolved updating the cache 
doesn't raise an exception.




-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.23 Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.23 APT utility programs
ii  libc6 2.9-25 GNU C Library: Shared libraries
ii  libgcc1   1:4.4.1-3  GCC support library
ii  libstdc++64.4.1-3The GNU Standard C++ Library v3
ii  lsb-release   3.2-23 Linux Standard Base version report
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.11 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.10.2-1   ISO language, territory, currency,
ii  libjs-jquery  1.3.3-2JavaScript library for dynamic web

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-gtk2   2.14.1-3   Python bindings for the GTK+ widge
ii  python-vte1:0.20.5-1 Python bindings for the VTE widget

-- no debconf information



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



Bug#471943: system-config-printer: MIssing dependency on python-notify

2008-03-21 Thread Sebastian Heinlein
Package: system-config-printer
Version: 0.7.81-2
Severity: important

The notification applet requires the libnotify python bindings.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages system-config-printer depends on:
ii  gksu  2.0.0-5graphical frontend to su
ii  python2.4.4-6An interactive high-level object-o
ii  python-cups   1.9.31-1   Python bindings for CUPS
ii  python-elementtree1.2.6-11   Light-weight toolkit for XML proce
ii  python-glade2 2.12.1-1   GTK+ bindings: Glade support
ii  python-gnome2 2.20.1-2   Python bindings for the GNOME desk
ii  python-gtk2   2.12.1-1   Python bindings for the GTK+ widge
ii  python-support0.7.7  automated rebuilding support for P
ii  python-xml0.8.4-10   XML tools for Python

system-config-printer recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#468132: ITP: packagekit -- a distribution neutral interface to manage software packages

2008-05-07 Thread Sebastian Heinlein
Am Dienstag, den 06.05.2008, 06:57 +0200 schrieb Daniel Baumann:
> Hi,
> 
> what is the status of this ITP?
> 
> Regards,
> Daniel

The packaging is already done. It can be found here
https://code.edge.launchpad.net/packagekit/

I am waiting for my sponsor to upload it to experimental.

Cheers,

Sebastian




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#596793: python-apt: Add a lock argument to apt.Cache.update and apt.Cache.commit

2010-09-14 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.97.1
Severity: wishlist

It would be nice to have a lock argument in the apt.cache.Cache.update()
and apt.cache.Cache.commit() methods.

It would allow to pass the fd (int) of an already acquired lock. The
corresponding methods won't try to get a lock on lists/archives if it's
given.

The packagekit backend and aptdaemon try to acquire the locks
before executing the tasks to give the user an idea which application
should be closed before the task can be performed, instead of failing
during the task.

So currently I have to acquire the locks at the start of a
transaction, release it again shortly before call e.g. Cache.update()
and re-aquire them again afterwards until the transaction is done.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg4.10]  0.8.4  Advanced front-end for dpkg
ii  apt-utils [libapt-inst1.2]0.8.4  APT utility programs
ii  libc6 2.11.2-5   Embedded GNU C Library: Shared lib
ii  libgcc1   1:4.4.4-14 GCC support library
ii  libstdc++64.4.4-14   The GNU Standard C++ Library v3
ii  python2.6.6-1interactive high-level object-orie
ii  python-central0.6.16 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.20-1 ISO language, territory, currency,
ii  lsb-release   3.2-23.1   Linux Standard Base version report
ii  python2.6 2.6.6-3An interactive high-level object-o

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-apt-doc0.7.97.1   Python interface to libapt-pkg (AP
ii  python-gtk2   2.17.0-4   Python bindings for the GTK+ widge
ii  python-vte1:0.24.3-1 Python bindings for the VTE widget

-- no debconf information



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



Bug#596793: python-apt: Add a lock argument to apt.Cache.update and apt.Cache.commit

2010-09-14 Thread Sebastian Heinlein
Here is small patch for the current debian-sid branch.
=== modified file 'apt/cache.py'
--- apt/cache.py	2010-09-03 10:08:20 +
+++ apt/cache.py	2010-09-14 08:00:13 +
@@ -261,14 +261,15 @@
 raise FetchFailedException(err_msg)
 return res
 
-def _fetch_archives(self, fetcher, pm):
+def _fetch_archives(self, fetcher, pm, lock_archives=True):
 """ fetch the needed archives """
 
 # get lock
-lockfile = apt_pkg.config.find_dir("Dir::Cache::Archives") + "lock"
-lock = apt_pkg.get_lock(lockfile)
-if lock < 0:
-raise LockFailedException("Failed to lock %s" % lockfile)
+if lock_archives:
+lockfile = apt_pkg.config.find_dir("Dir::Cache::Archives") + "lock"
+lock = apt_pkg.get_lock(lockfile)
+if lock < 0:
+raise LockFailedException("Failed to lock %s" % lockfile)
 
 try:
 # this may as well throw a SystemError exception
@@ -278,7 +279,8 @@
 # fetched
 return self._run_fetcher(fetcher)
 finally:
-os.close(lock)
+if lock_archives:
+os.close(lock)
 
 def is_virtual_package(self, pkgname):
 """Return whether the package is a virtual package."""
@@ -327,7 +329,7 @@
 
 @deprecated_args
 def update(self, fetch_progress=None, pulse_interval=0,
-   raise_on_error=True, sources_list=None):
+   raise_on_error=True, sources_list=None, lock_lists=True):
 """Run the equivalent of apt-get update.
 
 The first parameter *fetch_progress* may be set to an instance of
@@ -335,12 +337,15 @@
 .
 sources_list -- Update a alternative sources.list than the default.
  Note that the sources.list.d directory is ignored in this case
+
+If the optional 'lock_lists' argument is set to False, the lock of
+the package lists won't be acquired.
 """
-lockfile = apt_pkg.config.find_dir("Dir::State::Lists") + "lock"
-lock = apt_pkg.get_lock(lockfile)
-
-if lock < 0:
-raise LockFailedException("Failed to lock %s" % lockfile)
+if lock_lists:
+lockfile = apt_pkg.config.find_dir("Dir::State::Lists") + "lock"
+lock = apt_pkg.get_lock(lockfile)
+if lock < 0:
+raise LockFailedException("Failed to lock %s" % lockfile)
 
 if sources_list:
 old_sources_list = apt_pkg.config.find("Dir::Etc::sourcelist")
@@ -367,7 +372,8 @@
 else:
 return res
 finally:
-os.close(lock)
+if lock_lists:
+os.close(lock)
 if sources_list:
 apt_pkg.config.set("Dir::Etc::sourcelist", old_sources_list)
 apt_pkg.config.set("Dir::Etc::sourceparts", old_sources_list_d)
@@ -395,7 +401,8 @@
 return res
 
 @deprecated_args
-def commit(self, fetch_progress=None, install_progress=None):
+def commit(self, fetch_progress=None, install_progress=None,
+   lock_archives=None):
 """Apply the marked changes to the cache.
 
 The first parameter, *fetch_progress*, refers to a FetchProgress()
@@ -404,6 +411,9 @@
 
 The second parameter, *install_progress*, is a
 apt.progress.InstallProgress() object.
+
+If the optional parameter *lock_archive* is set to False, the lock
+to the download direcotry won't be acquired.
 """
 # FIXME:
 # use the new acquire/pkgmanager interface here,
@@ -421,7 +431,7 @@
 fetcher = apt_pkg.Acquire(fetch_progress)
 while True:
 # fetch archives first
-res = self._fetch_archives(fetcher, pm)
+res = self._fetch_archives(fetcher, pm, lock_archives)
 
 # then install
 res = self.install_archives(pm, install_progress)



signature.asc
Description: Digital signature


Bug#468132: ITP: packagekit -- a distribution neutral, interface to manage software packages

2010-01-15 Thread Sebastian Heinlein
On Fri, Jan 15, 2010 at 01:44:21PM +0100, Matthias Klumpp wrote:
> Is something going on on this bug?
> It would be excellent if we had PackageKit packaged on Debian too. A
> solution for debconf is also in progress!

Sorry to say. But AFAIK the debconf solution is currently far from being
resolved:

The approach of Dantti was not accepted by debconf upstream and the
preferred one of upstream hasn't been yet written.

Cheers,

Sebastian


signature.asc
Description: Digital signature


Bug#566370: python-apt: apt.Cache.update() crashes

2010-01-23 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.93
Severity: important

This small code snippet results in a crash:

import apt
c = apt.Cache()
c.update()

I have got the same problem in aptdaemon.

Cheers,

Sebastian


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4. 0.7.25.1Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6 0.7.25.1APT utility programs
ii  libc62.10.2-5Embedded GNU C Library: Shared lib
ii  libgcc1  1:4.4.2-9   GCC support library
ii  libstdc++6   4.4.2-9 The GNU Standard C++ Library v3
ii  python   2.5.4-9 An interactive high-level object-o
ii  python-central   0.6.14+nmu2 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.12.1-1   ISO language, territory, currency,
ii  libjs-jquery  1.4-1  JavaScript library for dynamic web
ii  lsb-release   3.2-23 Linux Standard Base version report

Versions of packages python-apt suggests:
ii  python-apt-dbg0.7.93 Python interface to libapt-pkg (de
ii  python-gtk2   2.16.0-1   Python bindings for the GTK+ widge
ii  python-vte1:0.22.5-1 Python bindings for the VTE widget

-- no debconf information
GNU gdb (GDB) 7.0-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/bin/python...Reading symbols from 
/usr/lib/debug/usr/bin/python2.5...done.
(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/python crash.py
[Thread debugging using libthread_db enabled]

Reading package lists... 0%

Reading package lists... 100%


Reading package lists... Done

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree

Reading state information... 0%

Reading state information... 0%


Reading state information... Done

Building data structures... 0%
   
Building data structures... 0%
   
Building data structures... 0%
   
Building data structures... 1%
   
Building data structures... 1%
   
Building data structures... 1%
   
Building data structures... 1%
   
Building data structures... 2%
   
Building data structures... 2%
   
Building data structures... 2%
   
Building data structures... 3%
   
Building data structures... 3%
   
Building data structures... 3%
   
Building data structures... 3%
   
Building data structures... 4%
   
Building data structures... 4%
   
Building data structures... 4%
   
Building data structures... 4%
   
Building data structures... 5%
   
Building data structures... 5%
   
Building data structures... 5%
   
Building data structures... 6%
   
Building data structures... 6%
   
Building data structures... 6%
   
Building data structures... 6%
   
Building data structures... 7%
   
Building data structures... 7%
   
Building data structures... 7%
   
Building data structures... 7%
   
Building data structures... 8%
   
Building data structures... 8%
   
Building data structures... 8%
   
Building data structures... 9%
   
Building data structures... 9%
   
Building data structures... 9%
   
Building data structures... 9%
   
Building data structures... 10%
  
Building data structures... 10%
  
Building data structures... 10%
  
Building data structures... 10%
  
Building data structures... 11%
  
Building data structures... 11%
  
Building data structures... 11%
  
Building data structures... 12%
  
Building data structures... 12%
  
Building data structures... 12%
  
Building data structures... 12%
  
Building data structures... 13%
  
Building data structures... 13%
  
Building data structures... 13%
  
Building data structures... 13%
  
Building data structures... 14%
  
Building data structures... 14%
  
Building data structures... 14%
  
Building data structures... 15%
  
Building data structures... 15%
  
Building data structures... 15%
  
Building data structures... 15%
  
Building data structures... 16%
  
Building data structures... 16%
  
Building data structures... 16%
  
Building data structures... 16%
  
Building data structures... 17%
  
Building data structures... 17%
  
Building data structures... 17%
 

Bug#597421: python-apt: apt.cache.Cache.required_space returns NaN in the case of a removal

2010-09-19 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.97.1
Severity: normal

If a package is marked for removal the required_space property of the
apt.cache.Cache returns Not a Number. It should be a negative value to
represent disk space which will be freed. Why is a float used instead of
a long?

>>> c = apt.Cache()
>>> p = c["xterm"]
>>> p.mark_delete()
>>> c.required_space
nan



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg4.10] 0.8.5   Advanced front-end for dpkg
ii  apt-utils [libapt-inst1.2]   0.8.5   APT utility programs
ii  libc62.11.2-6Embedded GNU C Library: Shared lib
ii  libgcc1  1:4.4.4-15  GCC support library
ii  libstdc++6   4.4.4-15The GNU Standard C++ Library v3
ii  python   2.6.6-1 interactive high-level object-orie
ii  python-central   0.6.16+nmu1 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.20-1 ISO language, territory, currency,
ii  lsb-release   3.2-23.1   Linux Standard Base version report
ii  python2.6 2.6.6-5An interactive high-level object-o

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-apt-doc0.7.97.1   Python interface to libapt-pkg (AP
ii  python-gtk2   2.17.0-4   Python bindings for the GTK+ widge
ii  python-vte1:0.24.3-1 Python bindings for the VTE widget

-- no debconf information



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



Bug#594813: apt: ListUpdate does return True in the case of network errors

2010-08-29 Thread Sebastian Heinlein
Package: apt
Version: 0.8.0
Severity: normal

The ListUpdate method in cache.cc returns True if a download fails or
there is a transient network error. It only emmits a warning.

This makes it impossible to handle download errors in higher libraries
(python-apt) or finally aptdaemon, see
https://bugs.edge.launchpad.net/aptdaemon/+bug/626144

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "true";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Update "";
APT::Update::Post-Invoke "";
APT::Update::Post-Invoke:: "touch /var/lib/apt/periodic/update-success-stamp 
2>/dev/null || true";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "[ ! -f /var/run/dbus/system_bus_socket ] || 
/usr/bin/dbus-send --system --dest=org.debian.apt --type=signal /org/debian/apt 
org.debian.apt.CacheChanged || true";
APT::Update::Post-Invoke-Success:: "[ ! -f /var/run/dbus/system_bus_socket ] || 
/usr/bin/dbus-send --system --dest=org.freedesktop.PackageKit 
--type=method_call /org/freedesktop/PackageKit 
org.freedesktop.PackageKit.StateHasChanged string:'cache-update'";
APT::Archives "";
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "/var/lib/apt/extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch 
/var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e 
/var/lib/update-notifier/updates-available ]; then echo > 
/var/lib/update-notifier/updates-available; fi ";
Unattended-Upgrade "";
Unattended-Upgrade::Allowed-Origins "";
Unattended-Upgrade::Allowed-Origins:: "${distro_id} stable";
Unattended-Upgrade::Allowed-Origins:: "${distro_id} 
${distro_codename}-security";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

deb http://ftp.de.debian.org/debian sid main contrib non-free
deb-src http://ftp.de.debian.org/debian sid main contrib non-free
deb http://ftp.de.debian.org/debian experimental main contrib non-free
deb-src http://ftp.de.debian.org/debian experimental main contrib non-free
#deb-src http://ftp.de.debian.org/debian sid main contrib non-free
#deb-src http://ftp.de.debian.org/debian experimental main contrib non-free

deb http://packages.glatzor.de/silly-packages sid main

#deb https://USER:geh...@packages.glatzor.de/debian lenny main
#deb http://www.debian-multimedia.org sid main non-free

deb 
https

Bug#594813: Acknowledgement (apt: ListUpdate does return True in the case of network errors)

2010-08-29 Thread Sebastian Heinlein
Sorry, it is located in algorithmus.cc



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



Bug#581831: python-apt: apt.Package.get_changelog only checks the first source record

2010-05-16 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.94.3
Severity: normal
Tags: patch upstream

If there is an upgradable package which is availabe in two repositories
e.g. lenny and lenny/updates, the changelog from the older
source version would be downloaded. This leads to an empty changelog.

The apt.package.Package.get_changelog method tries to get the correct
section from the source record, but it only checks the first source
record of a binary package name and doesn't check if it is older than the
binary version.

Cheers,

Sebastian

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.25.3   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.25.3   APT utility programs
ii  libc6 2.10.2-8   Embedded GNU C Library: Shared lib
ii  libgcc1   1:4.4.4-1  GCC support library
ii  libstdc++64.4.4-1The GNU Standard C++ Library v3
ii  python2.5.4-9An interactive high-level object-o
ii  python-central0.6.16 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.16-1 ISO language, territory, currency,
ii  lsb-release   3.2-23.1   Linux Standard Base version report
ii  python2.6 2.6.5-2An interactive high-level object-o

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-apt-doc0.7.94.3   Python interface to libapt-pkg (AP
ii  python-gtk2   2.17.0-2   Python bindings for the GTK+ widge
ii  python-vte1:0.24.1-1 Python bindings for the VTE widget

-- no debconf information
=== modified file 'apt/package.py'
--- apt/package.py  2010-03-31 14:48:21 +
+++ apt/package.py  2010-05-16 12:22:27 +
@@ -1010,30 +1010,21 @@
 # get the source version, start with the binaries version
 bin_ver = self.candidate.version
 src_ver = self.candidate.version
-#print "bin: %s" % binver
 try:
-# FIXME: This try-statement is too long ...
 # try to get the source version of the pkg, this differs
 # for some (e.g. libnspr4 on ubuntu)
 # this feature only works if the correct deb-src are in the
-# sources.list
-# otherwise we fall back to the binary version number
+# sources.list otherwise we fall back to the binary version number
 src_records = apt_pkg.SourceRecords()
-src_rec = src_records.lookup(src_pkg)
-if src_rec:
+except SystemError:
+pass
+else:
+while src_records.lookup(src_pkg):
+if not src_records.version or \
+   apt_pkg.version_compare(bin_ver, src_records.version) > 0:
+continue
 src_ver = src_records.version
-#if apt_pkg.VersionCompare(binver, srcver) > 0:
-#srcver = binver
-if not src_ver:
-src_ver = bin_ver
-#print "srcver: %s" % src_ver
 section = src_records.section
-#print "srcsect: %s" % section
-else:
-# fail into the error handler
-raise SystemError
-except SystemError:
-src_ver = bin_ver
 
 section_split = section.split("/", 1)
 if len(section_split) > 1:



Bug#575070: Exclusive read-write lock in file db driver breaks running debconf as non-root

2010-03-23 Thread Sebastian Heinlein
Package: debconf
Version: 1.5.29
Severity: normal

Hello,

In aptdaemon we use debconf-communicate running in the user session and
the passthrough backend for the actual installation to show the debconf
questions to the user.

With the new required read write lock on the file backends (which are
the default) debconf-communicate refuses to run as non-root and so
breaks debconf handling in aptdaemon.

Furthermore it is no longer possible to test config scripts as non-root
with using DEBCONF_DEB_REPLACE which I did before.

Cheers,

Sebastian



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debconf depends on:
ii  debconf-i18n  1.5.29 full internationalization support 
ii  perl-base 5.10.1-11  minimal Perl system

Versions of packages debconf recommends:
ii  apt-utils 0.7.25.3   APT utility programs

Versions of packages debconf suggests:
ii  debconf-doc   1.5.29 debconf documentation
ii  debconf-utils 1.5.29 debconf utilities
ii  dialog1.1-20100119-2 Displays user-friendly dialog boxe
ii  gnome-utils   2.28.1-1   GNOME desktop utilities
ii  libgnome2-perl1.042-2Perl interface to the GNOME librar
ii  libnet-ldap-perl  1:0.39-1   client interface to LDAP servers
pn  libterm-readline-gnu-perl  (no description available)
ii  perl  5.10.1-11  Larry Wall's Practical Extraction 
ii  whiptail  0.52.10-8  Displays user-friendly dialog boxe

-- debconf-show failed



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



Bug#578074: python-apt: apt.cache.Cache.get_changes could be faster

2010-04-21 Thread Sebastian Heinlein
On Wed, Apr 21, 2010 at 04:16:48PM +0200, Julian Andres Klode wrote:
> On Wed, Apr 21, 2010 at 08:30:29AM +, unknown wrote:
> > Currently the get_changes call requires to create several thounsands high
> > level apt.package.Package instances just to check which changes are
> > marked.
> OK, your patch reduced the time to 130 ms here. I rewrote it partially
> and used a simple "not marked_keep(pkg)" to identify whether a package
> has been changed. This reduces the time this method needs to about
> 17 ms. The patch landed in revision 400:
>   http://bzr.debian.org/loggerhead/apt/python-apt/debian-sid/revision/400
> 
> Furthermore, req_reinstall_pkgs now requires 40 ms instead of 700 ms:
>   http://bzr.debian.org/loggerhead/apt/python-apt/debian-sid/revision/403
> 
> And get_providing_packages() now takes 60 µs instead of 700 ms:
>   http://bzr.debian.org/loggerhead/apt/python-apt/debian-sid/revision/404
> 
> I ran tests on all of them to verify that they behave exactly like
> their old versions.
> 
> Have fun.

Great! It is really amazing how much you can get out of a small code
optimization. It would be also nice to have a get_upgradables method or an
upgradables property for the apt.Cache. Getting the list of 
upgradbale packages is my second most important iteration on the package
cache after the changes. I would like to make use of the internal API
here too.

Cheers,

Sebastian


signature.asc
Description: Digital signature


Bug#603662: software-center does not install anything

2010-11-17 Thread Sebastian Heinlein
The D-Bus activation (start on request) of aptdaemon seems to fail.

Could you please run the aptdaemon in a terminal before starting
software-center:

sudo aptd -td --replace

This should provide more information.


signature.asc
Description: Digital signature


Bug#596793: python-apt: Add a lock argument to apt.Cache.update and apt.Cache.commit

2010-11-17 Thread Sebastian Heinlein
You have to keep in that in most cases you have to acquire more than
one lock. E.g. for commit, you should hold the archive and dpkg status
lock. And they have to be raised in a special order to avoid races
with e.g. apt-get.

That is why I decided to always hold all three locks for an
aptdaemon transaction (archive, status, lists) and implement an
high level lock.

See 
http://bazaar.launchpad.net/~aptdaemon-developers/aptdaemon/main/annotate/head:/aptdaemon/lock.py

The idea with the context manager is very nice.


signature.asc
Description: Digital signature


Bug#468132: ITP: packagekit -- a distribution neutral, interface to manage software packages

2010-08-25 Thread Sebastian Heinlein
On Wed, Aug 25, 2010 at 11:53:56AM +0200, Matthias Klumpp wrote:
> PackageKit/KPackageKit has Debconf-Support now:
> http://dantti.wordpress.com/2010/08/23/debconf-support-on-kpackagekit/
> Can PackageKit be uploaded to Debian now, or is there something left
> speaking against it?

I am nowadays working nearly exclusively on aptdaemon and
session-installer - apt based alternantives to PackageKit. So I won't 
have the time to push PackageKit. Feel free to adopt.


signature.asc
Description: Digital signature


Bug#468132: ITP: packagekit -- a distribution neutral, interface to manage software packages

2010-08-25 Thread Sebastian Heinlein
On Wed, Aug 25, 2010 at 04:18:31PM +0200, Matthias Klumpp wrote:
> Hmm... Okay. I'll checkout if I can maintain it and if it gets accepted
> for Sid. (Probably not during freeze, but later)
> Thanks for the response!

If you need some assistance on the integration, feel free to contact
me.

On the backend side I would recommend to stay with the Python based
apt backend by default. Kubuntu recently switched to aptcc but this is
also a little bit problematic. (I am biased here since I am the author
of the apt backend :)

To add the debconf support to the apt backend are only a few lines of
code.

Cheers,

Sebastian


signature.asc
Description: Digital signature


Bug#589010: apt_pkg.AcquireItem: StatTransientNetworkError isn't mapped

2010-07-14 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.96.1
Severity: normal

The StatTransientNetworkError status of an AcquireItem isn't mapped, see
LP #602578.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.25.3   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.25.3   APT utility programs
ii  libc6 2.11.2-2   Embedded GNU C Library: Shared lib
ii  libgcc1   1:4.4.4-7  GCC support library
ii  libstdc++64.4.4-7The GNU Standard C++ Library v3
ii  python2.6.5-7interactive high-level object-orie
ii  python-central0.6.16 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes   3.18-1   ISO language, territory, currency,
ii  lsb-release 3.2-23.1 Linux Standard Base version report
ii  python2.6   2.6.5+20100706-1 An interactive high-level object-o

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-apt-doc0.7.96.1   Python interface to libapt-pkg (AP
ii  python-gtk2   2.17.0-2   Python bindings for the GTK+ widge
ii  python-vte1:0.24.1-1 Python bindings for the VTE widget

-- no debconf information



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



Bug#558690: ITP: aptdaemon -- transaction based package management service

2009-11-30 Thread Sebastian Heinlein
On Sun, Nov 29, 2009 at 10:17:19PM +0100, Julian Andres Klode wrote:
> Sebastian, could we get a 0.11 release tomorrow; with the state
> of the current trunk and the attached patch for Python 2.5
> support? This would be helpful; as I would like to upload
> the package tomorrow.

Thanks for pushing aptdaemon into Debian, Julian.

Sorry, but you did not attach the patch.

Could you please upload to experimental at first? I plan to work and
so change the D-Bus API and the currently ugly Python client API in
Decemeber. So I would like to avoid an early adoption of the API.

Furthermore I will release sessioninstaller in the next week. It is an
implementation of the PackageKit session D-Bus API which allows third
party applications to install easily additional packages, mime type 
handlers or GStreamer extensions. Sessioninstaller currently makes use
of aptdaemon for the installation, but a Synaptic backend is just a
few lines away.

Cheers,

Sebastian


signature.asc
Description: Digital signature


Bug#558797: ITP: sessioninstaller -- APT based installer using PackgeKit's session DBus API

2009-12-01 Thread Sebastian Heinlein
On Mon, Nov 30, 2009 at 05:56:18PM +0100, Julian Andres Klode wrote:
>   Description : APT based installer using PackgeKit's session DBus API
>  sessioninstaller makes use of PackageKit's DBus information to allow
>  distribution neutral software management hooks for upstream software on
>  APT based systems without loosing the interactiveness.

A better description would be:

Sessioninstaller allows applications to easily install additional
software (e.g. extensions or GSreamer codecs) by calling a simple
distribution neutral D-Bus interface.

The confirmation, error reporting and progress notification of the
installation is handled by sessioninstaller. Currently it comes only
with a GTK based user interface.

The D-Bus interface is developed under the PackageKit umbrella and is
available on the session bus. The reference implementation can be
found in gnome-packagekit. It was also adpoted by KPackageKit.

In contrast to gnome-packagekit and KPackageKit it doesn't use the
PackageKit daemon for querying and installation, but instead makes
use of APT and aptdaemon directly (alternatively synaptic can be
used).

Cheers,

Sebastian


signature.asc
Description: Digital signature


Bug#554895: python-apt: Dictonary access of VerionList is broken

2009-11-06 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.13.3
Severity: normal
Tags: patch

This bug is caused by two small typos, see patch for details.



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.24 Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.24 APT utility programs
ii  libc6 2.10.1-5   GNU C Library: Shared libraries
ii  libgcc1   1:4.4.2-2  GCC support library
ii  libstdc++64.4.2-2The GNU Standard C++ Library v3
ii  lsb-release   3.2-23 Linux Standard Base version report
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.12 register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes 3.11.1-1   ISO language, territory, currency,
ii  libjs-jquery  1.3.3-2JavaScript library for dynamic web

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-gtk2   2.16.0-1   Python bindings for the GTK+ widge
ii  python-vte1:0.22.3-1 Python bindings for the VTE widget

-- no debconf information
=== modified file 'apt/package.py'
--- apt/package.py  2009-08-28 12:39:22 +
+++ apt/package.py  2009-11-06 09:04:32 +
@@ -551,7 +551,7 @@
 except TypeError:
 # Dictionary interface item is a string.
 for ver in self._versions:
-if ver.ver_str == item:
+if ver.VerStr == item:
 return Version(self._package, ver)
 raise KeyError("Version: %r not found." % (item))
 
@@ -567,7 +567,7 @@
 item = item.version
 # Dictionary interface.
 for ver in self._versions:
-if ver.ver_str == item:
+if ver.VerStr == item:
 return True
 return False
 



Bug#622744: python-apt: Actiongroups always raise the unbalanced actiongroups warning

2011-04-14 Thread Sebastian Heinlein
Package: python-apt
Version: 0.7.100.3
Severity: normal

The "W: Unbalanced action groups, expect badness" is always raised if
packages are marked for a change.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg4.10]  0.8.13.2   Advanced front-end for dpkg
ii  apt-utils [libapt-inst1.2]0.8.13.2   APT utility programs
ii  libc6 2.11.2-11  Embedded GNU C Library: Shared lib
ii  libgcc1   1:4.6.0-2  GCC support library
ii  libstdc++64.6.0-2The GNU Standard C++ Library v3
ii  python2.6.6-12   interactive high-level object-orie
ii  python-apt-common 0.7.100.3  Python interface to libapt-pkg (lo
ii  python2.6 2.6.6-8+b1 An interactive high-level object-o

Versions of packages python-apt recommends:
ii  iso-codes 3.25-1 ISO language, territory, currency,
ii  lsb-release   3.2-27 Linux Standard Base version report

Versions of packages python-apt suggests:
pn  python-apt-dbg (no description available)
ii  python-apt-doc   0.7.100.3   Python interface to libapt-pkg (AP
ii  python-gtk2  2.17.0-4+b1 Python bindings for the GTK+ widge
ii  python-vte   1:0.24.3-2  Python bindings for the VTE widget

-- no debconf information
import apt

cache = apt.cache.Cache()
pkg = cache["xterm"]

with cache.actiongroup():
pkg.mark_install()