audit: don't leave behind tmp files
modified libpkg/fetch.c
@@ -101,7 +101,7 @@ static struct fetcher fetchers[] = {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -116,6 +116,10 @@ pkg_fetch_file_tmp(struct pkg_repo *repo, const char *url, char *dest,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -134,11 +138,14 @@ pkg_fetch_file_tmp(struct pkg_repo *repo, const char *url, char *dest,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg.h.in
@@ -1256,7 +1256,7 @@ int pkg_fetch_file(struct pkg_repo *repo, const char *url, char *dest, time_t t,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_audit.c
@@ -237,7 +237,7 @@ pkg_audit_fetch(const char *src, const char *dest)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -248,11 +248,6 @@ pkg_audit_fetch(const char *src, const char *dest)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -278,8 +273,6 @@ pkg_audit_fetch(const char *src, const char *dest)
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|