[debian] Installing *.ipk/*.opk part 2: apt-get-file

kimaidou kimaidou at gmail.com
Mon May 11 10:55:39 CEST 2009


Thanks for your help
i change sh into bash, and it works now.

My last pbm is my hackable apt-get wich does not want to install some
packages.. but it is not related to your script.

Thanks a lot

2009/5/11 Stefan Monnier <monnier at iro.umontreal.ca>

> > debian-gta02:~# apt-get-file install
> > http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk
> > trap: 26: ERR: bad trap
>
> > Any clue ?
>
> The script uses /bin/sh but actually relies on bashisms, so if your
> /bin/sh is actually something else (like dash, according to my crystal
> ball), you need to tweak the script with a patch such as the one below.
>
>
>        Stefan
>
>
> === modified file 'apt-get-file' (properties changed: -x to +x)
> --- apt-get-file        2009-05-10 19:41:44 +0000
> +++ apt-get-file        2009-05-10 19:47:27 +0000
> @@ -23,9 +23,12 @@
>          exit 1
>  }
>
> -trap exit_clean ERR
> -set -o errexit
> -set -o errtrace
> +# Bashisms.
> +#trap exit_clean ERR
> +#set -o errexit
> +#set -o errtrace
> +# For Dash.
> +trap exit_clean ILL QUIT SEGV HUP 0
>
>  if [ "--verbose" = "$1" ]; then
>         shift
>
>
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/community/attachments/20090511/95723624/attachment.htm 


More information about the community mailing list