--- pkg-get	2009-02-20 20:36:48.000000000 +0100
+++ pkg-get.modif	2009-02-20 20:36:48.000000000 +0100
@@ -92,7 +92,7 @@ grabfunc(){
 
 #-nv means NO progress meter at all. You dont get the dots.	
 #	wget -nv --dot-style=mega --passive-ftp   -O /dev/fd/1 $*
-	wget $PROXYFLAGS $WGET_PASSIVE --dot-style=mega  -O /dev/fd/1 $*
+	wget $PROXYFLAGS $WGET_PASSIVE --dot-style=mega $*
 }
 
 CONFFILE=/etc/pkg-get.conf
@@ -956,9 +956,12 @@ net_install() {
 	   ;;
 	esac
 
-	tmpfile=$net_name.tmp
+	tmpfile=$net_name
+
+	$WGET $graburl -O $tmpfile
+        gunzip $tmpfile
+        tmpfile=$(echo $tmpfile | sed s/\.gz//)
 
-	$WGET $graburl >$tmpfile
 	if [[ $? -ne 0 ]] || [[ ! -s $tmpfile ]] ; then
 		print error downloading $graburl
 		rm $tmpfile
@@ -1065,7 +1068,7 @@ update_catalog() {
 		exit 1
 	fi
 	print Getting catalog...
-	$WGET $url/$CPU/$OSREV/catalog > $TMPFILE
+	$WGET $url/$CPU/$OSREV/catalog -O $TMPFILE
 	if [[ $? -ne 0 ]] ; then
 		print ERROR: could not get catalog file
 		rm $TMPFILE
@@ -1083,7 +1086,7 @@ update_catalog() {
 	rm $TMPFILE
 	print $CATALOGFILE updated
 
-	$WGET $url/$CPU/$OSREV/descriptions > $TMPFILE
+	$WGET $url/$CPU/$OSREV/descriptions -O $TMPFILE
 	if [[ -s $TMPFILE ]] ; then
 		mv $TMPFILE $DESCFILE
 		print Updated description file
