Am Dienstag, den 25.10.2011, 14:53 +0200 schrieb Martin Pitt: 
> Jens Lody [2011-10-25 13:44 +0200]:
> > Wouldn't it be possible to add the line in the postinst-step ?
> 
> No, you can't change dependencies in maintainer scripts. The point is
> to stop apt from trying to install it in the first place.
> 
> > This should work for all versions including the backports.
> 
> The current solution should already work for backports. What is broken
> right now?
> 
> Thanks,
> 
> Martin
I know that dependencies are "hardcoded" at compile-time (or more
exactly during package-build).

What I meant is to add the "su root root"-line to the logrotate-conf
file for p-common dynamically in the postinst-script depending on the
version of logrotate.

No need to change dependency, as p-common already depends on logrotate.

It might be needed to change from depends to pre-depends on logrotate,
so a probably newer version is surely isntalled before p-commons's
postinst is reached. I'm not sure if this would really be needed.

Jens

-- 

Jens Lody

(Un-)official debian-repository for Code::Blocks:
http://apt.jenslody.de/


      |\      _,,,---,,_
      /,`.-'`'    -.  ;-;;,_
    <|,4-  ) )-,_..;\ (  `'-'
      '---''(_/--'  `-'\_)

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

Reply via email to