diff options
author | Andrew Cady <d@jerkface.net> | 2019-06-18 10:48:22 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-06-18 10:48:22 -0400 |
commit | c90c5fd4b721cf59a94064c4c25915f53fd8b308 (patch) | |
tree | bea633be821e6c0a1832d436908063ec913d08c7 /src | |
parent | e1e23d3d43bf6477ea83840864c4287947134272 (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.
Diffstat (limited to 'src')
-rwxr-xr-x | src/selfstrap | 2 |
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 |