From f0600d799cab79ebd1e2fc0fc193cbd94decaf06 Mon Sep 17 00:00:00 2001 From: "Lucas C. Villa Real" Date: Sun, 1 Jan 2017 19:57:44 -0200 Subject: Query the GoboLinux recipe store when looking up dependencies by package name. --- bin/InstallPackage-RPM | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'bin/InstallPackage-RPM') 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 } -- cgit v1.1