Eduard Bloch dixit:
>So, what's wrong, where is my shell?
It’s executed, but you don’t get an interactive shell
from an “A” hook.
For binNMU’ing, I use this:
tg@blau:~ $ cat /usr/src/contrib/hosted/tg/deb/hookdir/A50wait
#!/bin/bash
# $MirOS: contrib/hosted/tg/deb/hookdir/A50wait,v 1.3 2011/12/15 21:06:42 tg
Exp $
#-
# Not complicated enough for copyright.
#
# This is actually POSIX sh compliant, except many do not do arithmetics.
:>/waiting
i=1
while [ -e /waiting ]; do
i=$((i-1))
if [ $i = 0 ]; then
echo
ls -l /waiting
echo -n 'Waiting '
i=300
fi
if [ $((i%5)) = 0 ]; then
echo -n .
fi
sleep 2
done
echo
echo Continuing.
exit 0
Then I just do this, as root or pbuilder, in another term:
$ cd /var/cache/pbuilder/build/*/tmp/buildd/*/
$ dch --bin-nmu
The bad part here is that the copy-on-write from cowbuilder
is obviously not in effect here. But for binNMUing, it does
not matter, and I haven’t seen anything other that needs an
“A” hook, you can do the rest with --login or a “B” hook.
bye,
//mirabilos
--
„Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund,
mksh auf jedem System zu installieren.“
-- XTaran auf der OpenRheinRuhr, ganz begeistert
(EN: “[…]uhr.gz is a reason to install mksh on every system.”)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]