You are not logged in.
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
> Is there a way to hide this output?
With pacman? No.
1000
Offline
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
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.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Have you tried using expac?
Offline
Can't you just strip the lines out with sed?
sed -e '/^Optional dependencies/ d' -e '/^ /d'
Offline
What does your script do?
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline