[pacman-dev] [PATCH v2] Treat packages to be printed as non-ignored

Allan McRae allan at archlinux.org
Thu Mar 14 02:04:56 EDT 2013


On 14/03/13 15:51, Connor Behan wrote:
> Calling pacman -Sp is guaranteed not to install a package. So the user's
> IgnorePkg pref is still respected regardless of whether or not we print
> the mirror location. Therefore we might as well do so to give as much
> information as possible. Also fixes an edge case with devtools.
> 
> Signed-off-by: Connor Behan <connor.behan at gmail.com>
> ---
>  src/pacman/conf.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/pacman/conf.c b/src/pacman/conf.c
> index 3f1b1c3..c982df5 100644
> --- a/src/pacman/conf.c
> +++ b/src/pacman/conf.c
> @@ -1010,6 +1010,13 @@ int parseconfig(const char *file)
>  	if((ret = _parseconfig(file, &section, 1, 0))) {
>  		return ret;
>  	}
> +	
> +	/* #FS#34066 - Querying URLs for packages (even ignored ones) should succeed */
> +	if(config->print) {
> +		config->ignorepkg = NULL;
> +		config->ignoregrp = NULL;
> +	}
> +	
>  	if((ret = setup_libalpm())) {
>  		return ret;
>  	}
> 

Nope...    -Sup should still not print Ignored packages.  Also, what
should be done with packages explicitly ignored on the command line?

Allan



More information about the pacman-dev mailing list