diff options
| author | ruki <[email protected]> | 2020-11-06 22:37:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-06 22:37:49 +0800 |
| commit | 8d83314b65dfe66b35b961e220f98a65a5705d62 (patch) | |
| tree | 1346a59b262840c07a2322d87983d1aa30878d7e /xmake/actions/require/impl/package.lua | |
| parent | b9b7e1f2a07fdf8f54dd1dedb24f744f6c9c3b07 (diff) | |
improve tips for xrepo/remove and export
Diffstat (limited to 'xmake/actions/require/impl/package.lua')
| -rw-r--r-- | xmake/actions/require/impl/package.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua index ed89cf54f..0782b50c9 100644 --- a/xmake/actions/require/impl/package.lua +++ b/xmake/actions/require/impl/package.lua @@ -872,8 +872,10 @@ function export_packages(requires, opt) name = name .. "_" .. instance:buildhash() -- export this package - os.cp(instance:installdir(), path.join(exportdir, name)) - table.insert(packages, instance) + if instance:fetch() then + os.cp(instance:installdir(), path.join(exportdir, name)) + table.insert(packages, instance) + end end return packages end |
