From b083e85bc177bac58de146c49a98055f05d82152 Mon Sep 17 00:00:00 2001 From: "Lucas C. Villa Real" Date: Fri, 29 Jun 2018 16:50:55 -0300 Subject: Invert logic: do not search the web for dependencies by default. --- bin/ThirdPartyInstaller | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ThirdPartyInstaller b/bin/ThirdPartyInstaller index 33d6a2d..caaf8b9 100755 --- a/bin/ThirdPartyInstaller +++ b/bin/ThirdPartyInstaller @@ -17,7 +17,7 @@ scriptExample="xispita-2.0.3-1.x86_64.rpm" Add_Option_Entry "n" "app-name" "Override program name" Add_Option_Entry "e" "version-number" "Override program version number" Add_Option_Entry "l" "symlink" "If symlinks should be created and whether they should be forced on conflicts." "yes" "yes no force" -Add_Option_Boolean "W" "no-web" "Do not search the web to resolve dependencies." +Add_Option_Boolean "w" "web" "Search the web to resolve dependencies." Parse_Options "$@" ### Functions ################################################################# @@ -361,7 +361,7 @@ function take_dependency_from_path() { # What we do now is to query remote RPM/DEB databases to find which package hosts the # dependency file. - if ! Boolean "no-web" + if Boolean "web" then Log_Normal "Searching the remote $(thirdparty_backend) database for the package hosting $originalpath" depname=$(thirdparty_search_remotedb "$originalpath" "$arch" "$distro") @@ -394,7 +394,7 @@ function lookup_pkgname() { done # Query the GoboLinux recipe store. - if ! Boolean "no-web" + if Boolean "web" then local recipeurl=$(FindPackage -t recipe "${pkgname}" || FindPackage -t recipe "${goboname}") if [ "$recipeurl" ] -- cgit v1.1