From 562986eea4e55cd75987da5faa74bc780759fc54 Mon Sep 17 00:00:00 2001 From: ThomasBreuer Date: Fri, 13 Sep 2024 13:33:12 +0200 Subject: [PATCH] remove now unnecessary code lines --- src/packages.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/packages.jl b/src/packages.jl index 7c592bf2c..615a6d2c7 100644 --- a/src/packages.jl +++ b/src/packages.jl @@ -272,12 +272,8 @@ function install(spec::String, version::String = ""; # The package is not yet loaded but may be available. # If an available version has the required version number # then nothing is to do. - for inforec in getproperty(info, spec) - if version == string(getproperty(inforec, :Version)) - res = Globals.TestPackageAvailability(GapObj(spec), GapObj(version)) - res !== Globals.fail && return true - end - end + res = Globals.TestPackageAvailability(GapObj(spec), GapObj(version)) + res !== Globals.fail && return true end res = Globals.InstallPackage(GapObj(spec), GapObj(version), interactive; debug) end