From c5ea79474c9e9c05d81caac1e64ecca8dbf94a3d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 19 Dec 2023 17:57:35 +0100 Subject: [AptGetUpgradable] Update regex to include packages with no oldVersion --- src/main/java/org/openslx/taskmanager/tasks/AptGetUpgradable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openslx/taskmanager/tasks/AptGetUpgradable.java b/src/main/java/org/openslx/taskmanager/tasks/AptGetUpgradable.java index 0c0bb65..19aad33 100644 --- a/src/main/java/org/openslx/taskmanager/tasks/AptGetUpgradable.java +++ b/src/main/java/org/openslx/taskmanager/tasks/AptGetUpgradable.java @@ -13,7 +13,7 @@ public class AptGetUpgradable extends SystemCommandTask { // Inst vivaldi-snapshot [6.4.3160.29-1] (6.5.3222.3-1 Official Vivaldi package repository:stable [amd64]) - private static final Pattern REGEX = Pattern.compile( "^Inst (\\S+) \\[(\\S+)\\] \\((\\S+) ([^\\[\\)]+)" ); + private static final Pattern REGEX = Pattern.compile( "^Inst (\\S+)(?: \\[(\\S+)\\])? \\((\\S+) ([^\\[\\)]+)" ); private final Output status = new Output(); -- cgit v1.2.3-55-g7522