Bug#606105: orphaner: config.option to use aptitude rather than apt-get

2010-12-06 Thread Olivier Aubert
Hello

Indeed, I was not aware of the dpkg logs. It lacks human-readability:
the purge of 1 package generates 6 hard-to-read lines:

2010-12-06 12:41:57 status installed libcv4 2.0.0-4+b1
2010-12-06 12:41:58 remove libcv4 2.0.0-4+b1 2.0.0-4+b1
2010-12-06 12:41:58 status half-configured libcv4 2.0.0-4+b1
2010-12-06 12:41:58 status half-installed libcv4 2.0.0-4+b1
2010-12-06 12:41:58 status config-files libcv4 2.0.0-4+b1
2010-12-06 12:41:58 status config-files libcv4 2.0.0-4+b1

while aptitude simply logs
[REMOVE] libcv4

but anyway, it has the necessary information and the need for it is
infrequent in my experience. So basically, my wishlist bug can be
closed.

Thanks for your answer.
Best regards,
Olivier

On Mon, 2010-12-06 at 14:14 +0100, Carsten Hey wrote:
> Hi,
> 
> thanks for your bug report.
> 
> * Olivier Aubert [2010-12-06 12:41 +0100]:
> > Orphaner hard-codes apt-get as application to remove package, ...
> 
> A long time ago I thought about using dpkg instead of apt, but there
> were two good reasons why orphaner should use apt-get instead of dpkg:
> 
>   * Apt has hooks, dpkg has not and people use these hooks to do things
> like rw mounting /usr before installing or removing packages.
> Actually, these apt hooks should be part of dpkg instead, but this
> is nothing I can change (at least not easily).  Aptitude probably
> uses these apt hooks too.
> 
>   * By using apt-get, orphaner gets an additional dependency and sanity
> check nearly for free.  Orphaner runs apt-get in simulation mode and
> parses the output (or rather uses grep and compares apt-get's result
> with what orphaner has expected), if the apt-get's output is ok, it
> finally tells apt-get to remove the packages.
> 
> > but it would be nice to be able to use aptitude instead, because it
> > has the nice property of keeping a log file of its actions in
> > /var/log/aptitude.
> 
> Nowadays dpkg also has a log (/var/log/dpkg.log*) and I doubt that
> logging in aptitude would have been implemented if this would have been
> done for dpkg earlier.
> 
> > A configuration option to use aptitude would be nice.
> 
> I don't think adding a configuration file for deborphan or orphaner
> would be a good idea.  What possibly could be done is using an
> environment variable, e.g., $ORPHANER_OPTIONS in which one could specify
> additional orphaner options, this variable could be set in ~/.bashrc in
> wanted.
> 
> 
> Because of the dependency and sanity check, adding the requested option
> and maintaining it would be a more work than one would expect.  I also
> don't see why it would be useful now that dpkg has logging too.
> 
> deborphan will be team maintained in future and others might have
> a different opinion about this bug, but currently, I don't think such an
> option should be added to orphaner.  Let's wait what others think about
> this.
> 
> 
> Did you know that dpkg does logging and if you did not, did learning
> this change your opinion about the requested option?
> 
> 
> Regards
> Carsten





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



Bug#606105: orphaner: config.option to use aptitude rather than apt-get

2010-12-06 Thread Carsten Hey
Hi,

thanks for your bug report.

* Olivier Aubert [2010-12-06 12:41 +0100]:
> Orphaner hard-codes apt-get as application to remove package, ...

A long time ago I thought about using dpkg instead of apt, but there
were two good reasons why orphaner should use apt-get instead of dpkg:

  * Apt has hooks, dpkg has not and people use these hooks to do things
like rw mounting /usr before installing or removing packages.
Actually, these apt hooks should be part of dpkg instead, but this
is nothing I can change (at least not easily).  Aptitude probably
uses these apt hooks too.

  * By using apt-get, orphaner gets an additional dependency and sanity
check nearly for free.  Orphaner runs apt-get in simulation mode and
parses the output (or rather uses grep and compares apt-get's result
with what orphaner has expected), if the apt-get's output is ok, it
finally tells apt-get to remove the packages.

> but it would be nice to be able to use aptitude instead, because it
> has the nice property of keeping a log file of its actions in
> /var/log/aptitude.

Nowadays dpkg also has a log (/var/log/dpkg.log*) and I doubt that
logging in aptitude would have been implemented if this would have been
done for dpkg earlier.

> A configuration option to use aptitude would be nice.

I don't think adding a configuration file for deborphan or orphaner
would be a good idea.  What possibly could be done is using an
environment variable, e.g., $ORPHANER_OPTIONS in which one could specify
additional orphaner options, this variable could be set in ~/.bashrc in
wanted.


Because of the dependency and sanity check, adding the requested option
and maintaining it would be a more work than one would expect.  I also
don't see why it would be useful now that dpkg has logging too.

deborphan will be team maintained in future and others might have
a different opinion about this bug, but currently, I don't think such an
option should be added to orphaner.  Let's wait what others think about
this.


Did you know that dpkg does logging and if you did not, did learning
this change your opinion about the requested option?


Regards
Carsten



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



Bug#606105: orphaner: config.option to use aptitude rather than apt-get

2010-12-06 Thread Olivier Aubert
Package: deborphan
Version: 1.7.28
Severity: wishlist

Hello

I am mainly using aptitude, but sometimes install some packages
from external sources for tests, etc. That is why I need to run
deborphan/orphaner from time to time.

Orphaner hard-codes apt-get as application to remove package, but it
would be nice to be able to use aptitude instead, because it has the
nice property of keeping a log file of its actions in /var/log/aptitude.
It helps keeping track of removals, in case of too drastic actions.

A configuration option to use aptitude would be nice.

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

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

Versions of packages deborphan depends on:
ii  libc6 2.11.2-7   Embedded GNU C Library: Shared lib

Versions of packages deborphan recommends:
ii  apt   0.8.8  Advanced front-end for dpkg
ii  dialog1.1-20100428-1 Displays user-friendly dialog boxe
ii  gettext-base  0.18.1.1-3 GNU Internationalization utilities

deborphan suggests no packages.

-- 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