updates are interfered with by apt-listchanges

Bug #13182 reported by Colin Watson
8
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

If apt-listchanges is enabled, then update-manager just sits there with no
indication that it's waiting for input; you only realise what's going on when
you open the terminal.

Perhaps update-manager could bypass apt-listchanges somehow?

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I have a patch for apt-listchanges that adds a gtk interfaces (bug #13225).

Another option would be to detects "reads on stdin" in the pty of the vte
terminal widget and expand it automatically. Unfortunately I have no idea how I
could detect that. Ideas are welcome here :)

Bypassing apt-listchanges on the apt level is not feasible as it installs itself
to "DPkg::Pre-InstallPkgs" and that is run deep inside the dpkgpm.cc code. A
enviroment variable "APTLISTCHANGES_NO_ACT" would be a another option (that a
changed apt-listchanges honors).

Cheers,
 Michael

Revision history for this message
Matt Zimmerman (mdz) wrote :

(In reply to comment #1)
> Thanks for your bugreport.
> Another option would be to detects "reads on stdin" in the pty of the vte
> terminal widget and expand it automatically. Unfortunately I have no idea how I
> could detect that. Ideas are welcome here :)

I don't think it's possible. As I recall, Scott said he was going to do a bit
of research to confirm.

> Bypassing apt-listchanges on the apt level is not feasible as it installs itself
> to "DPkg::Pre-InstallPkgs" and that is run deep inside the dpkgpm.cc code. A
> enviroment variable "APTLISTCHANGES_NO_ACT" would be a another option (that a
> changed apt-listchanges honors).

This is already possible today, by setting APT_LISTCHANGES_FRONTEND=none. In
fact, if that meets your needs, I would prefer that you use that approach for
Hoary, rather than adding a frontend to apt-listchanges, since it is simpler and
more robust (no need to worry about whether pygtk is installed, for example).

Revision history for this message
Michael Vogt (mvo) wrote :

(In reply to comment #2)
> (In reply to comment #1)
> > Bypassing apt-listchanges on the apt level is not feasible as it installs itself
> > to "DPkg::Pre-InstallPkgs" and that is run deep inside the dpkgpm.cc code. A
> > enviroment variable "APTLISTCHANGES_NO_ACT" would be a another option (that a
> > changed apt-listchanges honors).
>
> This is already possible today, by setting APT_LISTCHANGES_FRONTEND=none. In
> fact, if that meets your needs, I would prefer that you use that approach for
> Hoary, rather than adding a frontend to apt-listchanges, since it is simpler and
> more robust (no need to worry about whether pygtk is installed, for example).

The patch for apt-listchanges detects pygtk and falls back to "pager" if it is
not available.
But I agree with you. I changed update-manager to set the frontend to "none". It
will be
part of the next upload.

Thanks,
 Michael

Revision history for this message
Michael Vogt (mvo) wrote :

update-manager_0.37.1+svn20050228 sets "APT_LISTCHANGES_FRONTEND=none" now.

cheers,
 Michael

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.