diff options
| -rw-r--r-- | xmake/modules/package/manager/portage/find_package.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/manager/portage/find_package.lua b/xmake/modules/package/manager/portage/find_package.lua index c10b079ee..9011705f5 100644 --- a/xmake/modules/package/manager/portage/find_package.lua +++ b/xmake/modules/package/manager/portage/find_package.lua @@ -43,7 +43,7 @@ function main(name, opt) local file_path = "/var/db/pkg/*/" .. name .. "-*/" local file = find_file("CONTENTS", file_path) local file_contents = try { function() return io.readfile(file) end } - + -- if the file contents couldn't be obtained, the package isn't installed if not file_contents then return @@ -61,7 +61,7 @@ function main(name, opt) end end end - + -- create an initial empty string for the list local list = "" for _, value in pairs(list_table) do |
