Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-02-17 21:55:00 -0500
committerAllan McRae <allan@archlinux.org>2013-02-24 13:11:54 +1000
commit3d142fe8ef70517cb44146d1892709cad3eb9b4f (patch)
tree8b476f43b179d409898a59e7421a74bdc44dd503 /lib
parent63baba13ecc003a0e083980dc7d036c66518d232 (diff)
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.c2
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;