Fix spelling/typo/grammar.

This commit is contained in:
Patrick Northon 2024-05-11 11:07:59 -04:00
parent dcad869c6e
commit f1a37aecae
3 changed files with 5 additions and 5 deletions

View file

@ -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_CONDITION_UNMET, &timecond);
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effective_url); 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) { if(!payload->signature && payload->download_signature && curlerr == CURLE_OK && payload->respcode < 400) {
struct dload_payload *sig = NULL; struct dload_payload *sig = NULL;
char *url = payload->fileurl; char *url = payload->fileurl;

View file

@ -49,7 +49,7 @@ struct dload_payload {
int allow_resume; int allow_resume;
int errors_ok; int errors_ok;
int unlink_on_fail; 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 */ int signature_optional; /* *.sig file is optional */
#ifdef HAVE_LIBCURL #ifdef HAVE_LIBCURL
CURL *curl; CURL *curl;

View file

@ -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)); 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); 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 /* even if the package file is in the cache, we need to check for
* accompanion *.sig file as well. * a companion *.sig file as well.
* If *.sig is not cached then force download the package + its signature file. * If *.sig is not cached, then force download the package + its signature file.
*/ */
if(!need_download && (siglevel & ALPM_SIG_PACKAGE)) { if(!need_download && (siglevel & ALPM_SIG_PACKAGE)) {
char *sig_filename = NULL; char *sig_filename = NULL;