Make urlget for package list interruptable with ^C
This commit is contained in:
parent
9b0832bbdd
commit
60277631e4
@ -119,8 +119,10 @@ then if [ -f $LISTFILE ]
|
|||||||
y=y
|
y=y
|
||||||
fi
|
fi
|
||||||
if [ "$y" = y -o "$y" = Y ]
|
if [ "$y" = y -o "$y" = Y ]
|
||||||
then echo "Fetching package list."
|
then echo "Fetching package list (^C to interrupt)."
|
||||||
urlget $LISTURL >$TMPF && mv $TMPF $LISTFILE || echo "Update not successful."
|
trap '' 2
|
||||||
|
intr urlget $LISTURL >$TMPF && mv $TMPF $LISTFILE || echo "Update not successful."
|
||||||
|
trap 2
|
||||||
fi
|
fi
|
||||||
netpackages=$LISTFILE
|
netpackages=$LISTFILE
|
||||||
if [ ! -f "$netpackages" -o ! `cat "$netpackages" 2>/dev/null | wc -l | awk '{ print $1 }'` -gt 1 ]
|
if [ ! -f "$netpackages" -o ! `cat "$netpackages" 2>/dev/null | wc -l | awk '{ print $1 }'` -gt 1 ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user