build: Erase package_cache upon flashing

To avoid the resources bug when dirty flashing

Signed-off-by: saikiran2001 <bjsaikiran@gmail.com>
This commit is contained in:
Ido Ben-Hur
2019-11-29 22:15:37 +02:00
committed by SkyMinus
parent 5a05cc117e
commit 6b3e296c17

View File

@@ -3667,6 +3667,9 @@ class BlockDifference(object):
new_data_name=new_data_name, code=code))
script.AppendExtra(script.WordWrap(call))
call = ('delete_recursive("/data/system/package_cache");')
script.AppendExtra(script.WordWrap(call))
def _HashBlocks(self, source, ranges): # pylint: disable=no-self-use
data = source.ReadRangeSet(ranges)
ctx = sha1()