From c90c5fd4b721cf59a94064c4c25915f53fd8b308 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 18 Jun 2019 10:48:22 -0400 Subject: bugfix for new output from apt that looks like this: line=Inst base-files [9.9+deb9u6] (9.9+deb9u9 Debian:9.9/stable [amd64]) It appears the third arg, the version inside the square brackets, was added. The code is now compatible with both the old output and the new output. --- src/selfstrap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/selfstrap b/src/selfstrap index 4492d67..686566f 100755 --- a/src/selfstrap +++ b/src/selfstrap @@ -204,6 +204,8 @@ parse_apt_simul_line() action=$1 package=$2 version=${3#\(} + version=${version#\[} + version=${version%]} shift 3 while [ "$1" ]; do -- cgit v1.2.3