From 9cc7b61562752267d639f8988a59a4599bc522ac Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Fri, 28 Sep 2018 16:08:46 -0700 Subject: [PATCH] fixed deb822 glitch, didn't handle all false cases --- inxi | 2 +- inxi.changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index 91ba5ba..d049184 100755 --- a/inxi +++ b/inxi @@ -13162,7 +13162,7 @@ sub get_repos_linux { } if ($row =~ /^Enabled:\s*(.*)/){ my $status = $1; - $b_apt_enabled = ($status =~ /no/i) ? 0: 1; + $b_apt_enabled = ($status =~ /\b(disable|false|off|no|without)\b/i) ? 0: 1; } if ($row =~ /:\//){ my $url = $row; diff --git a/inxi.changelog b/inxi.changelog index 5fe413c..dd1e0b3 100644 --- a/inxi.changelog +++ b/inxi.changelog @@ -24,6 +24,7 @@ suspect this is not a common situation, but you never know, it would never have shown up in datasets unless I had looked specifically for it, so it may be more common than I think. 3. Cleaned up and simplified new --admin -p and -d logic. +4. Small fix in deb822 repo type false flags. Enhancements: 1. For debugging, renamed all user debugger switches to have prefix --debug.