On Mon, 19 Dec 2011 23:41:21 +0530
Keshav P R <the.ridikulus....@gmail.com> wrote:

> On Mon, Dec 19, 2011 at 23:21, Tom Gundersen <t...@jklm.no> wrote:
> 
> >
> > Yeah, I'll make this clear in the news item. --force is always,
> > always, always wrong. Except for this one time, when it is the only
> > solution ;-)
> >
> > -t
> >
> 
> Sorry to interrupt guys but can't this be done in pre_upgrade function in
> .INSTALL script of the package?
> 
> Quote: man PKGBUILD
> 
>  pre_install
>            Run right before files are extracted. One argument is passed:
> new package full version string.
> 
> pre_upgrade
>            Run right before files are extracted. Two arguments are passed
> in this order: new package full version string, old package full version
> string.
> 
> Regards.
> 
> Keshav

This would require changing the install script only for this particular
update. But what's wrong with (as root)
"rm -vf /etc/mtab && ln -vs /proc/self/mounts /etc/mtab && pacman -Syu"?

-- 
Leonid Isaev
GnuPG key ID: 164B5A6D
Key fingerprint: C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D

Attachment: signature.asc
Description: PGP signature

Reply via email to