| Author |
Message |
|
|
Post subject: sed filtering of apt-get output
Posted: Jul 13, 2007 - 11:34 AM
|
|

Joined: Dec 04, 2006
Posts: 1238
Status: Offline
|
|
OK, listen, this is a rather weird idea. It's not exactly a request either, since I'm willing to try implementing something like this myself, I just don't know if it stands any chance. Here goes:
I've just wondered wether it's possible to have the output from apt-get filtered through sed or something before sending it on screen. The idea is to enhance d-u safety by marking the number of packages to be removed red if > 0. I could come up with a regexp to do so by myself, I just don't see if there's any way to intercept apt-get's output. Let alone i18n'ing the regexp.
Comments anyone? Topic open for discussion
Regards,
Severin |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: sed filtering of apt-get output
Posted: Jul 13, 2007 - 05:55 PM
|
|
Joined: Nov 28, 2006
Posts: 4303
Status: Offline
|
|
It's not worth it, but if I can make a suggestion: I've been thinking of this problem too, and I think the best long term strategy is to try to the get the relevant apt maintainer in debian to simply move the packages to be removed list from the top of the list to the bottom, right above the: do you wish to continue [YES][no]
Since this would be utterly trivial to achieve, and would help millions of users long term, I think this is an idea worth pursuing.
Putting the single most critical and important piece of information users need out of sight in console on any large dist-upgrade is not a particularly good idea, and I think with a bit of time and perseverance, this could be changed.
The current method is not unlike putting a stop light on the next block from the street it's intended for - sure if you know about the stop light, and know the one down the street actually means your current street, it's ok, but it really shouldn't rely on users knowing to look for something in general, it should be readily visible and obvious. |
_________________ sidux Maintenance script: dist-upgrade, kernel install, general utilities: smxi
Backup script [using rdiff-backup]: rd-h2.sh
|
| |
|
|
|
 |
|
|
Post subject: RE: sed filtering of apt-get output
Posted: Jul 16, 2007 - 08:03 AM
|
|

Joined: Dec 04, 2006
Posts: 1238
Status: Offline
|
|
| good point. I filed a bug |
|
|
| |
|
|
|
 |
|
|
|
|