libalpm: return final final temp path in pkgurl
When downloading unnamed files via alpm_fetch_pkgurl the returned path would point to the temp pkgcache instead of the final download location.
This commit is contained in:
parent
4ddc642398
commit
f722b86990
1 changed files with 2 additions and 1 deletions
|
@ -1377,7 +1377,8 @@ int SYMEXPORT alpm_fetch_pkgurl(alpm_handle_t *handle, const alpm_list_t *urls,
|
||||||
const char *filename = mbasename(payload->destfile_name);
|
const char *filename = mbasename(payload->destfile_name);
|
||||||
filepath = _alpm_filecache_find(handle, filename);
|
filepath = _alpm_filecache_find(handle, filename);
|
||||||
} else {
|
} else {
|
||||||
STRDUP(filepath, payload->tempfile_name, GOTO_ERR(handle, ALPM_ERR_MEMORY, err));
|
const char *filename = mbasename(payload->tempfile_name);
|
||||||
|
filepath = _alpm_filecache_find(handle, filename);
|
||||||
}
|
}
|
||||||
if(filepath) {
|
if(filepath) {
|
||||||
alpm_list_append(fetched, filepath);
|
alpm_list_append(fetched, filepath);
|
||||||
|
|
Loading…
Add table
Reference in a new issue