[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fix error message from tools/sort_deps



So it's not quite as simple as I thought, this patch just leads to other
error messages later on.

On Fri, 2009-08-07 at 18:09 +0100, Ian Campbell wrote:
> It seems that "apt-cache depends" recently (as of 0.7.22) started
> including Enhances lines in its output. Leading to:
>          Generating dependency tree with apt-cache depends...
>         UNEXPECTED: Line `  Enhances: kvm
>         ' while parsing end of deptree from 'kvm-source'
>         [etc....]
> 
> Accept these lines gracefully.
> 
> --- a/tools/sort_deps
> +++ b/tools/sort_deps
> @@ -308,7 +308,7 @@ sub read_depends {
>  	my $i = shift;     # Ref
>  	my $lines = shift; # Ref
>  	my $pkg = shift;   # string
> -	my $types = "(?:Pre)?Depends|Suggests|Recommends|Replaces|Conflicts|Breaks";
> +	my $types = "(?:Pre)?Depends|Suggests|Recommends|Replaces|Conflicts|Breaks|Enhances";
>  	my (@dep, @rec, @sug);
>  	my ($type, $or, $elt);
>  
> 
> 
-- 
Ian Campbell

Your society will be sought by people of taste and refinement.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: