diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-15 12:55:26 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-15 12:55:26 +0200 |
commit | cfdef51bee5f2c4ccb95e3bb3c929df13b9fc54a (patch) | |
tree | 52ed75c5332c861194d4e7c1a3613ec471a9f803 /src/url.c | |
parent | 4c7f1e0deca0a48bd398d332e3a3c42ce527d04a (diff) | |
download | apk-tools-cfdef51bee5f2c4ccb95e3bb3c929df13b9fc54a.tar.gz apk-tools-cfdef51bee5f2c4ccb95e3bb3c929df13b9fc54a.tar.bz2 apk-tools-cfdef51bee5f2c4ccb95e3bb3c929df13b9fc54a.tar.xz apk-tools-cfdef51bee5f2c4ccb95e3bb3c929df13b9fc54a.zip |
db: index file location is a URL
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -66,6 +66,11 @@ struct apk_istream *apk_istream_from_url(const char *url) return apk_istream_from_fd(fork_wget(url)); } +struct apk_istream *apk_istream_from_url_gz(const char *file) +{ + return apk_bstream_gunzip(apk_bstream_from_url(file), TRUE); +} + struct apk_bstream *apk_bstream_from_url(const char *url) { if (url_is_file(url)) @@ -73,3 +78,4 @@ struct apk_bstream *apk_bstream_from_url(const char *url) return apk_bstream_from_fd(fork_wget(url)); } + |