diff options
author | Simon Rettberg | 2023-12-19 17:57:35 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-12-19 17:57:35 +0100 |
commit | c5ea79474c9e9c05d81caac1e64ecca8dbf94a3d (patch) | |
tree | b3c351a3d2df5572d90f04840d67f7e17e3d3a3e /src/main/java/org/openslx/taskmanager | |
parent | [AptGetUpgradable] Use apt-get to list upgradable files (diff) | |
download | tmlite-bwlp-c5ea79474c9e9c05d81caac1e64ecca8dbf94a3d.tar.gz tmlite-bwlp-c5ea79474c9e9c05d81caac1e64ecca8dbf94a3d.tar.xz tmlite-bwlp-c5ea79474c9e9c05d81caac1e64ecca8dbf94a3d.zip |
[AptGetUpgradable] Update regex to include packages with no oldVersion
Diffstat (limited to 'src/main/java/org/openslx/taskmanager')
-rw-r--r-- | src/main/java/org/openslx/taskmanager/tasks/AptGetUpgradable.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |