From dba23140b99d1195f570bb76aa19a9091d4ced5d Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Thu, 30 Nov 2023 15:25:11 -0500 Subject: Fixed fetch_if_not_present. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lpm.lua b/src/lpm.lua index e122fe9..824b286 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1144,7 +1144,7 @@ function Repository:generate_manifest(repo_id) end function Repository:fetch_if_not_present() - if system.stat(self.local_path) then return end + if system.stat(self.local_path) then return self end return self:fetch() end -- cgit v1.2.3