diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-02-17 21:55:00 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-02-24 13:11:54 +1000 |
commit | 3d142fe8ef70517cb44146d1892709cad3eb9b4f (patch) | |
tree | 8b476f43b179d409898a59e7421a74bdc44dd503 /lib | |
parent | 63baba13ecc003a0e083980dc7d036c66518d232 (diff) | |
download | 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>
Diffstat (limited to 'lib')
-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; |