diff options
Diffstat (limited to 'src/selfstrap')
-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 | *\)) |