summaryrefslogtreecommitdiffstats
path: root/src/feed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/feed.sh')
-rw-r--r--src/feed.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/feed.sh b/src/feed.sh
index 356902e..5f8d86b 100644
--- a/src/feed.sh
+++ b/src/feed.sh
@@ -48,7 +48,14 @@ feed_download()
url="${base_url}/Packages"
fi
- ${WGET} -q -O - "${url}" | ${gunzip} >"${list_file}"
+ if ! ${WGET} -q -O "${list_file}.tmp" "${url}"; then
+ return 1
+ fi
+ if ! ${gunzip} <"${list_file}.tmp" >"${list_file}"; then
+ rm -f "${list_file}.tmp"
+ return 1
+ fi
+ rm -f "${list_file}.tmp"
return 0
}