summaryrefslogtreecommitdiff
path: root/xmake/actions/require/scan.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-17 22:49:31 +0800
committerruki <[email protected]>2020-02-17 10:57:07 +0800
commit82752d654d9f34619e7a8f4e39abb9cbdaf0957a (patch)
tree717adf3b1112ff84471d42d758bbe561fa388ce3 /xmake/actions/require/scan.lua
parent8368581d63ff27a0edc3928a8a391b2cf3e1e4bc (diff)
improve to require/install and uninstall
Diffstat (limited to 'xmake/actions/require/scan.lua')
-rw-r--r--xmake/actions/require/scan.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/require/scan.lua b/xmake/actions/require/scan.lua
index 20ea9dee3..abb4a88b9 100644
--- a/xmake/actions/require/scan.lua
+++ b/xmake/actions/require/scan.lua
@@ -51,7 +51,7 @@ function _scan_package(packagedir)
end
local manifest_file = path.join(hashdir, "manifest.txt")
local manifest = os.isfile(manifest_file) and io.load(manifest_file) or nil
- cprintf(" -> ${yellow}%s${clear}: ${green}%s, %s${clear}", hash, manifest.plat, manifest.arch)
+ cprintf(" -> ${yellow}%s${clear}: ${green}%s, %s${clear}", hash, manifest and manifest.plat or "", manifest and manifest.arch or "")
if os.emptydir(hashdir) then
cprintf(", ${red}empty${clear}")
elseif not referenced then