diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-02-18 03:55:00 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-02-24 04:11:54 +0100 |
commit | 3d142fe8ef70517cb44146d1892709cad3eb9b4f (patch) | |
tree | 8b476f43b179d409898a59e7421a74bdc44dd503 | |
parent | 63baba13ecc003a0e083980dc7d036c66518d232 (diff) | |
download | pacman-3d142fe8ef70517cb44146d1892709cad3eb9b4f.tar.gz pacman-3d142fe8ef70517cb44146d1892709cad3eb9b4f.tar.xz |
dload: don't download sig if package is found in cache
Avoids the segfault seen in FS#33911.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | lib/libalpm/dload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 280eaaf1..7513822e 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -688,7 +688,7 @@ char SYMEXPORT *alpm_fetch_pkgurl(alpm_handle_t *handle, const char *url) } /* attempt to download the signature */ - if(ret == 0 && (handle->siglevel & ALPM_SIG_PACKAGE)) { + if(ret == 0 && final_pkg_url && (handle->siglevel & ALPM_SIG_PACKAGE)) { char *sig_filepath, *sig_final_file = NULL; size_t len; |