mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
fix: 将缓存目录从/rom/cache移动到/packages/cache并确保目录存在
确保缓存目录与其它包相关文件位于同一位置,提高文件组织的一致性。同时在安装过程中检查并创建缓存目录。
This commit is contained in:
@@ -145,6 +145,11 @@ end
|
||||
ok()
|
||||
|
||||
bullet("Creating directories...")
|
||||
-- 确保缓存目录存在
|
||||
local cache_dir = "/packages/cache"
|
||||
if not fs.exists(cache_dir) then
|
||||
fs.makeDir(cache_dir)
|
||||
end
|
||||
for i=#to_dl, 1, -1 do
|
||||
local v = to_dl[i]
|
||||
if v.type == "tree" then
|
||||
|
||||
Reference in New Issue
Block a user