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

Re: Poosible to hook on dpkg, dselect or apt?



On Fri, Aug 24, 2001 at 01:30:09PM +0200, Paul Seelig wrote:
> The following message is a courtesy copy of an article
> that has been posted to local.debian.devel as well.
> 
> opal@debian.org (Ola Lundqvist) writes:
> 
> > I have now tried this and sorry to say but sich a thing does
> > not seem to exist in apt. :( There is a Pre-Install-Pkgs but
> > no Post-Install-Pkgs. The script is not runned anyway and I
> > use:
> > 
> > DPkg::Post-Install-Pkgs { "/usr/sbin/update-twinspot || true"; };
> > 
> > Is there anywhing wrong with my line or should I file a whishlist
> > bug to apt?
> > 
> Check out the "apt-localepurge" package.  It contains a file named
> "/etc/apt/apt.conf.d/99-apt-localepurge" which probably contains the
> mechanism you are looking for:
> 
> ---------------- snip --------------------------
> // Get rid of unneeded locale files after each package installation
> 
> DPkg
> {
> Post-Invoke {"if [ -x /usr/sbin/apt-localepurge ]; then /usr/sbin/apt-localepurge; else exit 0; fi";};
> };
> ---------------- snip --------------------------

Thanks a lot!

Regards,

// Ola

-- 
 ------------ Ola Lundqvist, ordförande lysator ----------------
/  ordforande@lysator.liu.se           Björnkärrsgatan 5 A.11   \
|  opal@lysator.liu.se                 584 36 LINKÖPING         |
|  +46 (0)13-17 69 83                  +46 (0)70-332 1551       |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------



Reply to: