index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-02-04 09:00:47 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-04 09:00:47 -0600 |
commit | c12ccbfb2c7aa907ba01339a1a29089c65ea9911 (patch) | |
tree | 62932e1bd76193bcc5e78b87f714b192c7668439 /lib/libalpm/dload.c | |
parent | 7467fb9e763d9895044791eb0407e58d2793f377 (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 6 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index c856e96c..15d75556 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -296,7 +296,11 @@ static int download_internal(const char *url, const char *localpath, tv[1].tv_sec = ust.mtime; utimes(tempfile, tv); } - rename(tempfile, destfile); + if(rename(tempfile, destfile)) { + _alpm_log(PM_LOG_ERROR, _("could not rename %s to %s (%s)\n"), + tempfile, destfile, strerror(errno)); + ret = -1; + } ret = 0; cleanup: |