aboutsummaryrefslogtreecommitdiff
path: root/Functions/DEB
diff options
context:
space:
mode:
authorLucas C. Villa Real <lucasvr@gmail.com>2017-01-02 22:35:07 -0200
committerLucas C. Villa Real <lucasvr@gmail.com>2017-01-02 22:35:07 -0200
commitf984b80e11c576bf883910d0ce92c746b7e03bae (patch)
treed72e43013a4271718313337773f36b44752348b6 /Functions/DEB
parent8a8da53a71e64d736b19f808eca6f48c425ee80f (diff)
downloadThirdPartyInstallers-f984b80e11c576bf883910d0ce92c746b7e03bae.tar.xz
Improve DEB dependency processing.
Diffstat (limited to 'Functions/DEB')
-rw-r--r--Functions/DEB8
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() {