diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-01-11 09:16:38 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-01-11 11:20:48 +0200 |
commit | 7caa21773160f9be4d095ce0489d05e8d0131312 (patch) | |
tree | 0e023031acbbc2bc1d82de6ba3cfc127cb955e40 /src/url.c | |
parent | 6da3e8eb15c0456b9908bedfdeced2f3a550b58c (diff) | |
download | apk-tools-7caa21773160f9be4d095ce0489d05e8d0131312.tar.gz apk-tools-7caa21773160f9be4d095ce0489d05e8d0131312.tar.bz2 apk-tools-7caa21773160f9be4d095ce0489d05e8d0131312.tar.xz apk-tools-7caa21773160f9be4d095ce0489d05e8d0131312.zip |
convert remaining locations to use istream instead of bstream
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -152,12 +152,5 @@ struct apk_istream *apk_istream_from_fd_url_if_modified(int atfd, const char *ur struct apk_istream *apk_istream_from_url_gz(const char *file) { - return apk_bstream_gunzip(apk_bstream_from_url(file)); -} - -struct apk_bstream *apk_bstream_from_fd_url_if_modified(int atfd, const char *url, time_t since) -{ - if (apk_url_local_file(url) != NULL) - return apk_bstream_from_file(atfd, apk_url_local_file(url)); - return apk_bstream_from_istream(apk_istream_fetch(url, since)); + return apk_istream_gunzip(apk_istream_from_url(file)); } |