Commit 39055366 authored by Colin Watson's avatar Colin Watson

Consider arch restrictions for command-not-found

parent 292e9e9c
......@@ -2716,7 +2716,7 @@ sub cnf_from_release {
my $filename = substr($path, length($compdir)+1, length($path)-length($compdir)-1);
next if $filename !~ /\.(?:gz|bz2|xz)$/;
my $all_arches = "(".join("|", map(quotemeta, @arches)).")";
next if $filename =~ /^Commands-/;
next if $filename =~ /^Commands-/ and $filename !~ /^Commands-$all_arches\./;
my $size = $file_lists{$path}{size};
if(!(defined($include) && ($subdir."/".$filename)=~/$include/o)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment