From f1a37aecae757ce8555f3284fe16c32570df95cc Mon Sep 17 00:00:00 2001 From: Patrick Northon Date: Sat, 11 May 2024 11:07:59 -0400 Subject: [PATCH] Fix spelling/typo/grammar. --- lib/libalpm/dload.c | 2 +- lib/libalpm/dload.h | 2 +- lib/libalpm/sync.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 4d83fd01..29b3998b 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -608,7 +608,7 @@ static int curl_check_finished_download(alpm_handle_t *handle, CURLM *curlm, CUR curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &timecond); curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effective_url); - /* Let's check if client requested downloading accompanion *.sig file */ + /* Let's check if client requested downloading a companion *.sig file */ if(!payload->signature && payload->download_signature && curlerr == CURLE_OK && payload->respcode < 400) { struct dload_payload *sig = NULL; char *url = payload->fileurl; diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h index 88684676..acaf0898 100644 --- a/lib/libalpm/dload.h +++ b/lib/libalpm/dload.h @@ -49,7 +49,7 @@ struct dload_payload { int allow_resume; int errors_ok; int unlink_on_fail; - int download_signature; /* specifies if an accompanion *.sig file need to be downloaded*/ + int download_signature; /* specifies if a companion *.sig file need to be downloaded*/ int signature_optional; /* *.sig file is optional */ #ifdef HAVE_LIBCURL CURL *curl; diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index e73b8ffc..3e87d574 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -744,9 +744,9 @@ static int find_dl_candidates(alpm_handle_t *handle, alpm_list_t **files) ASSERT(spkg->filename != NULL, RET_ERR(handle, ALPM_ERR_PKG_INVALID_NAME, -1)); need_download = spkg->download_size != 0 || !_alpm_filecache_exists(handle, spkg->filename); - /* even if the package file in the cache we need to check for - * accompanion *.sig file as well. - * If *.sig is not cached then force download the package + its signature file. + /* even if the package file is in the cache, we need to check for + * a companion *.sig file as well. + * If *.sig is not cached, then force download the package + its signature file. */ if(!need_download && (siglevel & ALPM_SIG_PACKAGE)) { char *sig_filename = NULL;