summaryrefslogtreecommitdiffstats
path: root/src/pacman/sync.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-14 19:43:51 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-02-14 19:43:51 +0100
commite4c9ab48959f3312afff074015e062f5791374a7 (patch)
tree053ac6f041a581b46b5ecca34de5afc1e44e5d00 /src/pacman/sync.c
parent7ab3bb136decf09febc63861a4f274728d78e41e (diff)
downloadpacman-e4c9ab48959f3312afff074015e062f5791374a7.tar.gz
pacman-e4c9ab48959f3312afff074015e062f5791374a7.tar.xz
- added a WARN macro to display warnings
- used ERR macro for error messages
Diffstat (limited to 'src/pacman/sync.c')
-rw-r--r--src/pacman/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index d146fac9..a5d24695 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -692,13 +692,13 @@ int pacman_sync(list_t *targets)
fflush(stdout);
if(stat(ldir, &buf)) {
/* no cache directory.... try creating it */
- MSG(NL, "warning: no %s cache exists. creating...\n", ldir);
+ WARN(NL, "no %s cache exists. creating...\n", ldir);
alpm_logaction("warning: no %s cache exists. creating...", ldir);
if(makepath(ldir)) {
/* couldn't mkdir the cache directory, so fall back to /tmp and unlink
* the package afterwards.
*/
- MSG(NL, "warning: couldn't create package cache, using /tmp instead");
+ WARN(NL, "couldn't create package cache, using /tmp instead");
alpm_logaction("warning: couldn't create package cache, using /tmp instead");
snprintf(ldir, PATH_MAX, "/tmp");
if(alpm_set_option(PM_OPT_CACHEDIR, (long)ldir) == -1) {