summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-06-18 10:48:22 -0400
committerAndrew Cady <d@jerkface.net>2019-06-18 10:48:22 -0400
commitc90c5fd4b721cf59a94064c4c25915f53fd8b308 (patch)
treebea633be821e6c0a1832d436908063ec913d08c7
parente1e23d3d43bf6477ea83840864c4287947134272 (diff)
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.
-rwxr-xr-xsrc/selfstrap2
1 files changed, 2 insertions, 0 deletions
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()
204 action=$1 204 action=$1
205 package=$2 205 package=$2
206 version=${3#\(} 206 version=${3#\(}
207 version=${version#\[}
208 version=${version%]}
207 shift 3 209 shift 3
208 210
209 while [ "$1" ]; do 211 while [ "$1" ]; do