diff options
author | Andrew Cady <d@jerkface.net> | 2019-06-18 10:56:18 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-06-18 10:56:18 -0400 |
commit | 0ea67bc90446c26a8d76f333a34dbef0da63f0b2 (patch) | |
tree | cca9bb2b6484eb66368ccdab03a4b8244394a5b9 /src | |
parent | 7fb0906b2777a0f392191f7bce194eefbad7cbf0 (diff) |
Comments explaining changes in apt output
Diffstat (limited to 'src')
-rwxr-xr-x | src/selfstrap | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/selfstrap b/src/selfstrap index 31c81cf..86bbab4 100755 --- a/src/selfstrap +++ b/src/selfstrap | |||
@@ -203,11 +203,16 @@ parse_apt_simul_line() | |||
203 | set -- $* | 203 | set -- $* |
204 | action=$1 | 204 | action=$1 |
205 | package=$2 | 205 | package=$2 |
206 | # Third word might either be "(version" or "[version]" depending on which | ||
207 | # apt is producing the output. Newer apt versions apparently add an extra | ||
208 | # "[version]" parameter, making "(version" the fourth argument. | ||
206 | version=${3#\(} | 209 | version=${3#\(} |
207 | version=${version#\[} | 210 | version=${version#\[} |
208 | version=${version%]} | 211 | version=${version%]} |
209 | shift 3 | 212 | shift 3 |
210 | 213 | ||
214 | # Find the last word, which is inside (a group of words that are inside | ||
215 | # parentheses). | ||
211 | while [ "$1" ]; do | 216 | while [ "$1" ]; do |
212 | case "$1" in | 217 | case "$1" in |
213 | *\)) | 218 | *\)) |