You are not logged in.

#1 2010-01-06 18:24:48

boulde
Member
Registered: 2009-10-05
Posts: 41

[PKGBUILD] icon-theme.cache is already present

Hi,
I created a PKGBUILD to test « perroquet » (http://perroquet.b219.org/index.html), it's also the mean to do my first PKGBUILD ;-) so any comments are welcome. The PKGBUILD is here : http://pastebin.com/m943685e

Unfortunately, when I want to install my package, I get this error:

$ sudo pacman -U perroquet-1.0.0-1-x86_64.pkg.tar.gz 
Mot de passe : 
Chargement des données du paquet...
Vérification des dépendances...
(1/1) Analyse des conflits entre fichiers           [##################################################] 100%
Erreur: la préparation de la transaction a échoué (conflit de fichiers)
perroquet: /usr/share/icons/hicolor/icon-theme.cache est déjà présent dans le système de fichiers

it is in french, so to traduce roughly: « /usr/share/icons/hicolor/icon-theme.cache is already present in the filesystem »
this file /usr/share/icons/hicolor/icon-theme.cache is in the package and in my system, what should I do ? delete the file in pre-install script ?

Offline

#2 2010-01-07 02:44:42

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [PKGBUILD] icon-theme.cache is already present

boulde wrote:

what should I do ? delete the file in pre-install script ?

would be better to do it inside the PKGBUILD:

rm -f "$pkgdir/usr/share/icons/hicolor/icon-theme.cache"

Offline

#3 2010-01-07 08:47:15

boulde
Member
Registered: 2009-10-05
Posts: 41

Re: [PKGBUILD] icon-theme.cache is already present

ok, thanks.
But I don't understand why I have this problem. Since my post someone put a PKGBUILD on AUR for perroquet and there is nothing about icon-theme.cache: http://aur.archlinux.org/packages/perro … t/PKGBUILD (I can't try yet, I'm at work with Fedora ;-))

Last edited by boulde (2010-01-07 08:47:33)

Offline

Board footer

Powered by FluxBB