aboutsummaryrefslogtreecommitdiff
path: root/bin/InstallPackage-RPM
diff options
context:
space:
mode:
authorLucas C. Villa Real <lucasvr@gmail.com>2017-01-01 19:57:44 -0200
committerLucas C. Villa Real <lucasvr@gmail.com>2017-01-01 19:57:44 -0200
commitf0600d799cab79ebd1e2fc0fc193cbd94decaf06 (patch)
tree8df5a936feeaea2d1ee19d8d040a4d6f306469a3 /bin/InstallPackage-RPM
parentb799cc578059c7600959f855eb1acee4de7d4460 (diff)
downloadThirdPartyInstallers-f0600d799cab79ebd1e2fc0fc193cbd94decaf06.tar.xz
Query the GoboLinux recipe store when looking up dependencies by package
name.
Diffstat (limited to 'bin/InstallPackage-RPM')
-rwxr-xr-xbin/InstallPackage-RPM14
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/InstallPackage-RPM b/bin/InstallPackage-RPM
index 921683e..0fccafe 100755
--- a/bin/InstallPackage-RPM
+++ b/bin/InstallPackage-RPM
@@ -393,7 +393,19 @@ function lookup_pkgname() {
fi
done
- # Query the remote RPM database
+ # Query the GoboLinux recipe store.
+ if ! Boolean "no-web"
+ then
+ local recipeurl=$(FindPackage -t recipe "${pkgname}")
+ if [ "$recipeurl" ]
+ then
+ # TODO we're potentially discarding the wanted version(s) of the given dep
+ echo "$(basename $recipeurl | sed 's,\(.*\)--.*--.*,\1,g')" && return 0
+ fi
+ fi
+
+ # TODO Query the remote RPM database
+
return 1
}