From 60277631e4893c29e5659122bd1911a0ea1dba3d Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sun, 26 Mar 2006 19:56:05 +0000 Subject: [PATCH] Make urlget for package list interruptable with ^C --- commands/scripts/packman.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ] -- 2.44.0