From e4c9ab48959f3312afff074015e062f5791374a7 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 14 Feb 2006 18:43:51 +0000 Subject: - added a WARN macro to display warnings - used ERR macro for error messages --- src/pacman/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pacman/sync.c') 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) { -- cgit v1.2.3