diff options
author | Lucas C. Villa Real <lucasvr@gmail.com> | 2017-01-02 22:35:07 -0200 |
---|---|---|
committer | Lucas C. Villa Real <lucasvr@gmail.com> | 2017-01-02 22:35:07 -0200 |
commit | f984b80e11c576bf883910d0ce92c746b7e03bae (patch) | |
tree | d72e43013a4271718313337773f36b44752348b6 /Functions/DEB | |
parent | 8a8da53a71e64d736b19f808eca6f48c425ee80f (diff) | |
download | ThirdPartyInstallers-f984b80e11c576bf883910d0ce92c746b7e03bae.tar.xz |
Improve DEB dependency processing.
Diffstat (limited to 'Functions/DEB')
-rw-r--r-- | Functions/DEB | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Functions/DEB b/Functions/DEB index f2cebec..1c0e498 100644 --- a/Functions/DEB +++ b/Functions/DEB @@ -28,7 +28,13 @@ function thirdparty_distribution() { function thirdparty_dependencies() { local debfile="$1" - dpkg-deb --field "$debfile" "Depends" + local deps=$(dpkg-deb --field "$debfile" "Depends") + + # The Depends fields contains a comma-separated list of dependencies. The range with the required + # versions, when available, is output between parenthesis. To make the Dependencies output match the + # format used by GoboLinux, we use a newline separator and remove all parenthesis characters found. + + echo "$deps" | sed 's/, /\n/g' | tr -d "()" } function thirdparty_description() { |