[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#726156: latest APT breaks InstallProgress



On Sun, Oct 13, 2013 at 09:34:29PM +0200, Julian Andres Klode wrote:
> On Sat, Oct 12, 2013 at 11:21:32PM +0200, Eugenio 'g7' Paolantonio wrote:
[..]
> > It seems that the latest APT update breaks the base python-apt
> > InstallProgress, as some package names in the status stream also feature
> > the package architecture (packagename:arch).
[..]
> 
> There are more cases that need to be handled. I'll take a look at
> it tomorrow.

This is a unintended side-effect of the fix in libapt for parsing the
dpkg progress multiarch status information. 

The mixing of the ":" as the architecture qualifier and the delimiter
is one part of the problem, the other that apt is re-using the dpkg
status stream format instead of better abstracting this away from the
apt frontends. So we need quoting or we make apt always send the
architecture information. Either way it will break existing frontends
that parse this data.

The better option IMO is to have a proper pkgInstallProgress class that
python-apt/synaptic/aptitude can use (just like pkgAcquireStatus). I
started to explore this in my feature/install-progress-refactor
branch. 

Cheers,
 Michael


Reply to: