fixed repo deb822 cleaner logic

This commit is contained in:
Harald Hope 2018-09-28 18:25:02 -07:00
parent 258fc1d639
commit 853b651942

8
inxi
View file

@ -13135,8 +13135,8 @@ sub get_repos_linux {
foreach my $row (@data2){
next if $row =~ /^\s+/; # deb822 supports line folding which starts with space
#print "$row\n";
if ($row eq '~' && @apt_working){
if ($b_apt_enabled){
if ($row eq '~'){
if (@apt_working && $b_apt_enabled){
#print "1: url builder\n";
foreach $repo (@apt_working){
$string = $apt_types;
@ -13147,9 +13147,9 @@ sub get_repos_linux {
#print "s1:$string\n";
push @data3, $string;
}
#print join "\n",@data3,"\n";
@apt_urls = (@apt_urls,@data3);
}
#print join "\n",@data3,"\n";
@apt_urls = (@apt_urls,@data3);
@data3 = ();
@apt_working = ();
$apt_arch = '';