You are not logged in.

#1 2015-09-12 17:16:28

folatt
Member
Registered: 2015-08-01
Posts: 96

Get rid of pacman's "Optional dependencies for.." messages

Is there a way to hide this output?

They're annoying to me. I want my script's output to look clean, only mention which programs have been installed, and not filled with suggestions. It's easier to spot flaws in my script this way.

Last edited by folatt (2015-09-12 17:29:23)

Offline

#2 2015-09-12 17:34:29

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Get rid of pacman's "Optional dependencies for.." messages

> Is there a way to hide this output?

With pacman? No.


1000

Offline

#3 2015-09-12 18:44:34

Webbeh
Member
Registered: 2012-07-08
Posts: 49

Re: Get rid of pacman's "Optional dependencies for.." messages

Use ABS and build your own.

Comment out lines 1235-1239 and 1257-1261 (in 4.2.1) in src/pacman/util.c

They should look like this :

if(optstrings) {
 printf(_("New optional dependencies for %s\n"), alpm_pkg_get_name(newpkg)); 
 unsigned short cols = getcols();
 list_display_linebreak("   ", optstrings, cols);
}
if(optstrings) {
 printf(_("Optional dependencies for %s\n"), alpm_pkg_get_name(pkg));
 unsigned short cols = getcols();
 list_display_linebreak("   ", optstrings, cols);
}

There are other lines matching this in test/pacman/tests/query010.py and query011.py, as well as in src/pacman/package.c, don't know if you need to remove them or not.

Offline

#4 2015-09-12 20:13:07

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Get rid of pacman's "Optional dependencies for.." messages

folatt wrote:

Is there a way to hide this output?

They're annoying to me. I want my script's output to look clean, only mention which programs have been installed, and not filled with suggestions. It's easier to spot flaws in my script this way.

https://projects.archlinux.org/users/remy/pyalpm.git/


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2015-09-12 21:15:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Get rid of pacman's "Optional dependencies for.." messages

Have you tried using expac?

Offline

#6 2015-09-12 21:34:30

snakeroot
Member
Registered: 2012-10-06
Posts: 164

Re: Get rid of pacman's "Optional dependencies for.." messages

Can't you just strip the lines out with sed?

sed -e '/^Optional dependencies/ d' -e '/^   /d'

Offline

#7 2015-09-13 00:18:07

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Get rid of pacman's "Optional dependencies for.." messages

What does your script do?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB