Remove incorrect output with download only and IgnorePkg
When only downloading a package that is in IgnorePkg, pacman incorrectly asks about installing. e.g. with <pkg> in IgnorePkg in pacman.conf: > pacman -Sddw <pkg> :: <pkg> is in IgnorePkg/IgnoreGroup. Install anyway? [Y/n] This output is now silenced when downloading only. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
8c6a636cd9
commit
45fe92bf39
@ -256,8 +256,12 @@ void cb_trans_conv(pmtransconv_t event, void *data1, void *data2,
|
||||
{
|
||||
switch(event) {
|
||||
case PM_TRANS_CONV_INSTALL_IGNOREPKG:
|
||||
*response = yesno(_(":: %s is in IgnorePkg/IgnoreGroup. Install anyway?"),
|
||||
alpm_pkg_get_name(data1));
|
||||
if(!config->op_s_downloadonly) {
|
||||
*response = yesno(_(":: %s is in IgnorePkg/IgnoreGroup. Install anyway?"),
|
||||
alpm_pkg_get_name(data1));
|
||||
} else {
|
||||
*response = 1;
|
||||
}
|
||||
break;
|
||||
case PM_TRANS_CONV_REPLACE_PKG:
|
||||
*response = yesno(_(":: Replace %s with %s/%s?"),
|
||||
|
Loading…
Reference in New Issue
Block a user