From f705cf2f6eb64876633df02c00aec2467df01131 Mon Sep 17 00:00:00 2001 From: flatron4eg Date: Sat, 15 Apr 2023 13:01:36 +0300 Subject: [PATCH] Fixed winget name/version parsing for installed list --- wingetui/wingetHelpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wingetui/wingetHelpers.py b/wingetui/wingetHelpers.py index c61c92f85..5222d3d13 100644 --- a/wingetui/wingetHelpers.py +++ b/wingetui/wingetHelpers.py @@ -206,8 +206,8 @@ def searchForInstalledPackage(signal: Signal, finishSignal: Signal) -> None: while " " in verElement: verElement = verElement.replace(" ", " ") iOffset = 0 - id = verElement.split(" ")[iOffset+0] - ver = verElement.split(" ")[iOffset+1] + id = " ".join(verElement.split(" ")[iOffset:-1]) + ver = verElement.split(" ")[-1] if len(id)==1: iOffset + 1 id = verElement.split(" ")[iOffset+0]