index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-04-06 20:20:20 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-04-06 20:20:20 -0500 |
commit | 4c872594da321aa406cfb306c32c94ce2929d59e (patch) | |
tree | 6fb5db8d8497d3a59955045b6a56e1a0ef30072d /lib/libalpm/util.h | |
parent | e4a4cf7ce544707faa691c8ab1bf298549979b12 (diff) |
-rw-r--r-- | lib/libalpm/util.h | 4 |
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 0bf122cd..74b4f981 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -51,6 +51,10 @@ #define ASSERT(cond, action) do { if(!(cond)) { action; } } while(0) +#define RET_ERR(err, ret) do { pm_errno = (err); \ + _alpm_log(PM_LOG_DEBUG, "returning error %d from %s : %s\n", err, __func__, alpm_strerrorlast()); \ + return(ret); } while(0) + int _alpm_makepath(const char *path); int _alpm_makepath_mode(const char *path, mode_t mode); int _alpm_copyfile(const char *src, const char *dest); |