You are not logged in.

#1 2011-01-24 03:43:34

jackphil
Member
Registered: 2008-12-04
Posts: 21

[Solved] install-info problem

when I upgrade my system, I saw some errors:

error: command failed to execute correctly

check the package's .INSTALL, run it manually, I get something like:

install-info: menu item `gpg-agent' already exists, for file `gnupg'
install-info: menu item `gpg-agent' already exists, for file `gnupg'

can anyone fix it?

thx

Solved:

I have another version install-info come with texlive installed not from pacman repo, and it stand in the front of arch install-info in the $PATH.

Last edited by jackphil (2011-01-25 02:13:40)

Offline

#2 2011-01-24 06:51:03

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] install-info problem

Please be more specific i.e. name the package and post the install script.

Offline

#3 2011-01-24 15:24:24

jackphil
Member
Registered: 2008-12-04
Posts: 21

Re: [Solved] install-info problem

I think it similar with https://bbs.archlinux.org/viewtopic.php?pid=673587, but the solution doesn't work for me. and it doesn't about a specific package, because when i install the same packages on another arch machine, there is no error

anyway, here it is:

package: gnupg2-2.0.17-1-i686.pkg.tar.xz

install script:

infodir=/usr/share/info
filelist=(gnupg.info gnupg.info-1 gnupg.info-2)

post_install() {
  for file in ${filelist[@]}; do
    install-info $infodir/$file $infodir/dir 2> /dev/null
  done
}

post_upgrade() {
  post_install $1
}

my test script:

#!/bin/bash

infodir=/usr/share/info
filelist=(gnupg.info gnupg.info-1 gnupg.info-2)

post_install() {
  for file in ${filelist[@]}; do
    install-info $infodir/$file $infodir/dir 
  done
}
post_install

all the error info is in my first post

Last edited by jackphil (2011-01-24 15:26:11)

Offline

Board footer

Powered by FluxBB