From: Ben Gras Date: Sun, 26 Mar 2006 19:56:05 +0000 (+0000) Subject: Make urlget for package list interruptable with ^C X-Git-Tag: v3.1.2a~124 X-Git-Url: http://zhaoyanbai.com/repos/doxygen-warnings.log?a=commitdiff_plain;h=60277631e4893c29e5659122bd1911a0ea1dba3d;p=minix.git Make urlget for package list interruptable with ^C --- diff --git a/commands/scripts/packman.sh b/commands/scripts/packman.sh index 3d73f2d81..282ebe5f2 100644 --- a/commands/scripts/packman.sh +++ b/commands/scripts/packman.sh @@ -119,8 +119,10 @@ then if [ -f $LISTFILE ] y=y fi if [ "$y" = y -o "$y" = Y ] - then echo "Fetching package list." - urlget $LISTURL >$TMPF && mv $TMPF $LISTFILE || echo "Update not successful." + then echo "Fetching package list (^C to interrupt)." + trap '' 2 + intr urlget $LISTURL >$TMPF && mv $TMPF $LISTFILE || echo "Update not successful." + trap 2 fi netpackages=$LISTFILE if [ ! -f "$netpackages" -o ! `cat "$netpackages" 2>/dev/null | wc -l | awk '{ print $1 }'` -gt 1 ]