summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-15 23:50:40 +0800
committerruki <[email protected]>2019-03-15 17:04:04 +0800
commite0409a203a82f6ba309993ae1c53c9038027f28a (patch)
treee490c19573e85a43de73542c084eb54563a65a8d
parentc548ab42140686edaa93b9b952e8f64241bf364c (diff)
improve install scripts
-rw-r--r--xmake/actions/require/impl/action/install.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/xmake/actions/require/impl/action/install.lua b/xmake/actions/require/impl/action/install.lua
index f55d8afd1..0dd3a731b 100644
--- a/xmake/actions/require/impl/action/install.lua
+++ b/xmake/actions/require/impl/action/install.lua
@@ -100,9 +100,6 @@ function main(package)
filter.call(script, package)
end
end
-
- -- save the package info to the manifest file
- package:manifest_save()
need_test = true
end
end
@@ -114,9 +111,14 @@ function main(package)
end
assert(fetchinfo, "fetch %s failed!", tipname)
- -- test it
+ -- need continue to test it?
if need_test then
+
+ -- test it
test(package)
+
+ -- save the package info to the manifest file
+ package:manifest_save()
end
end