summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/taskmanager/tasks
diff options
context:
space:
mode:
authorSimon Rettberg2023-12-19 17:57:35 +0100
committerSimon Rettberg2023-12-19 17:57:35 +0100
commitc5ea79474c9e9c05d81caac1e64ecca8dbf94a3d (patch)
treeb3c351a3d2df5572d90f04840d67f7e17e3d3a3e /src/main/java/org/openslx/taskmanager/tasks
parent[AptGetUpgradable] Use apt-get to list upgradable files (diff)
downloadtmlite-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/tasks')
-rw-r--r--src/main/java/org/openslx/taskmanager/tasks/AptGetUpgradable.java2
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();