mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix OTAManager tar invocations (#4150)
* Bump base * Fix tar flag ordering in OTAManager So that no-recursion actually gets honored, preventing us from creating extra-large archives with unrelated content... (Tar started being pickier about flag ordering in a recent version bump). Fix #4147 Closes #4148 (by superceding it)
This commit is contained in:
2
base
2
base
Submodule base updated: ae3e5a7f65...69bae2122e
@@ -187,17 +187,17 @@ function OTAManager:_buildLocalPackage()
|
||||
end
|
||||
if Device:isAndroid() then
|
||||
return os.execute(string.format(
|
||||
"./tar cf %s -T %s --no-recursion",
|
||||
"./tar --no-recursion -cf %s -T %s",
|
||||
self.installed_package, self.package_indexfile))
|
||||
else
|
||||
-- With visual feedback if supported...
|
||||
if lfs.attributes("./kotar_cpoint", "mode") == "file" then
|
||||
return os.execute(string.format(
|
||||
"./tar cf %s -C .. -T %s --no-recursion --checkpoint=200 --checkpoint-action=exec='./kotar_cpoint $TAR_CHECKPOINT create'",
|
||||
"./tar --no-recursion -cf %s -C .. -T %s --checkpoint=200 --checkpoint-action=exec='./kotar_cpoint $TAR_CHECKPOINT create'",
|
||||
self.installed_package, self.package_indexfile))
|
||||
else
|
||||
return os.execute(string.format(
|
||||
"./tar cf %s -C .. -T %s --no-recursion",
|
||||
"./tar --no-recursion -cf %s -C .. -T %s",
|
||||
self.installed_package, self.package_indexfile))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user