From 3d142fe8ef70517cb44146d1892709cad3eb9b4f Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 17 Feb 2013 21:55:00 -0500 Subject: dload: don't download sig if package is found in cache Avoids the segfault seen in FS#33911. Signed-off-by: Dave Reisner Signed-off-by: Allan McRae --- lib/libalpm/dload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/dload.c') 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; -- cgit v1.2.3-24-g4f1b