FS#46241 - archlinux-appstream-data displays error at install

Attached to Project: Community Packages
Opened by Étienne Deparis (milouse) - Wednesday, 09 September 2015, 22:41 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 10 September 2015, 06:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Since the last version of the package appstream (current package version, which causes the bug, is 0.8.4-1), the appstream CLI binary has changed its name from appstream-cli to appstreamcli.

This cause the "appstream-cli refresh-index --force" in the archlinux-appstream-data.install to fail and display an error even if the package seems to be correctly installed.

** How to solve?

Replace the archlinux-appstream-data.install with this:

post_install() {
appstreamcli refresh-index --force
}

post_upgrade() {
appstreamcli refresh-index --force
}

** Steps to reproduce (sorry for the french output):

# pacman -Syy
# pacman -S archlinux-appstream-data
résolution des dépendances...
recherche des conflits entre paquets...

Paquets (1) archlinux-appstream-data-20150830-1

Taille totale installée : 15,42 MiB
Taille de mise à jour nette : 0,00 MiB

:: Procéder à l’installation ? [O/n]
(1/1) vérification des clés dans le trousseau [###################] 100%
(1/1) vérification de l’intégrité des paquets [###################] 100%
(1/1) chargement des fichiers des paquets [###################] 100%
(1/1) analyse des conflits entre fichiers [###################] 100%
(1/1) vérification de l’espace disque disponible [###################] 100%
(1/1) réinstallation archlinux-appstream-data [###################] 100%
/tmp/alpm_OlffF6/.INSTALL: ligne 6: appstream-cli : commande introuvable
erreur : la commande n’a pas pu être exécutée correctement
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 10 September 2015, 06:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  archlinux-appstream-data 20150830-2

Loading...