[debian] Installing *.ipk/*.opk part 2: apt-get-file
Stefan Monnier
monnier at iro.umontreal.ca
Mon May 11 05:23:47 CEST 2009
> 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
More information about the community
mailing list