You are not logged in.

#1 2011-08-06 11:07:45

tadzik
Member
From: &tadzik
Registered: 2009-07-17
Posts: 91

[SOLVED] Silencing particular pacman warnings?

Currently, pacman does this:

[root@yavin4 ~]# pacman -Su
:: Starting full system upgrade...
warning: kdepim-akregator: ignoring package upgrade (4.4.9-1 => 4.7.0-1)
warning: kdepim-kmail: ignoring package upgrade (4.4.9-1 => 4.7.0-1)
warning: kdepim-libkdepim: ignoring package upgrade (4.4.9-1 => 4.7.0-1)

Why, thank you pacman. I added them to IgnorePkg myself, I don't need to see the warning every time. Is there any way to do this, aside from wrapping pacman with grep?

Last edited by tadzik (2011-08-06 12:54:02)

Offline

#2 2011-08-06 11:43:39

Allan
is always right
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,463
Website

Re: [SOLVED] Silencing particular pacman warnings?

Nope.

Offline

#3 2011-08-06 12:53:39

tadzik
Member
From: &tadzik
Registered: 2009-07-17
Posts: 91

Re: [SOLVED] Silencing particular pacman warnings?

Acknowlegded. So, for all adventurous/insane Archers, this moves all the annoying warnings in pacman do debug level:

--- src/lib/libalpm/sync.c.orig    2011-08-06 14:25:09.000000000 +0200
+++ src/lib/libalpm/sync.c    2011-08-06 14:56:59.000000000 +0200
@@ -123,7 +123,7 @@
                                 lpkg->name, lpkg->version, spkg->version);
                     /* check IgnorePkg/IgnoreGroup */
                     if(_alpm_pkg_should_ignore(spkg) || _alpm_pkg_should_ignore(lpkg)) {
-                        _alpm_log(PM_LOG_WARNING, _("%s: ignoring package upgrade (%s => %s)\n"),
+                        _alpm_log(PM_LOG_DEBUG, _("%s: ignoring package upgrade (%s => %s)\n"),
                                         lpkg->name, lpkg->version, spkg->version);
                     } else {
                         _alpm_log(PM_LOG_DEBUG, "adding package %s-%s to the transaction targets\n",
@@ -142,7 +142,7 @@
                             trans->add = alpm_list_add(trans->add, spkg);
                         }
                     } else {
-                        _alpm_log(PM_LOG_WARNING, _("%s: local (%s) is newer than %s (%s)\n"),
+                        _alpm_log(PM_LOG_DEBUG, _("%s: local (%s) is newer than %s (%s)\n"),
                                 lpkg->name, lpkg->version, sdb->treename, spkg->version);
                     }
                 }

Applied that on my system pacman and it works like a charm

Last edited by tadzik (2011-08-06 13:03:18)

Offline

Board footer

Powered by FluxBB