Kaixo!

On Mon, Apr 10, 2000 at 09:07:14PM +0200, Stefan van der Eijk wrote:

> I've managed to get the man-pages<fill in many langues here> 
> packages to build with a non-root account. Please test &
> integrate into cooker if possible.
 
> %post
> /usr/sbin/makewhatis.ja /usr/man/ja /usr/X11R6/man/ja
> /etc/cron.weekly/makewhatis-%{LANG}.cron


You are running twice the same command; as what is inside of
/etc/cron.weekly/makewhatis-%{LANG}.cron script is
"/usr/sbin/makewhatis.ja /usr/man/ja /usr/X11R6/man/ja"

Put this instead:

%post
/etc/cron.weekly/makewhatis-%{LANG}.cron

> %postun
> # 0 means deleting the package
> if [ "$1" = "0" ]; then
>    ## Force removing of /var/catman/%{LANG}, if there isn't any man page
>    ## directory /usr/man/%{LANG}
>    if [ ! -d /usr/man/%{LANG} ] ; then

> %files
[...]
> #%ghost /usr/man/%{LANG}/whatis

The problem if you don't include the whatis file into the rpm package
is that the %postun script is mostly useless and the /usr/man/%{LANG}
directories cannot get removed; that leads to error messages and to
orphaned directories and files on the harddisk.

-- 
Ki ça vos våye bén,
Pablo Saratxaga

http://www.ping.be/~pin19314/           PGP Key available, key ID: 0x8F0E4975

Reply via email to