fix: do not delete dirs under /var/lib
This commit is contained in:
parent
08ffe04565
commit
072e93ebf0
1 changed files with 0 additions and 2 deletions
2
akshara
2
akshara
|
@ -370,8 +370,6 @@ Server = {package_repo["repo-url"]}
|
|||
for name in var_lib_diff.left_only:
|
||||
if os.path.isdir(os.path.join(var_lib_diff.left, name)):
|
||||
exec('cp', '-ax', os.path.join(var_lib_diff.left, name), dir_name)
|
||||
for name in var_lib_diff.right_only:
|
||||
exec('rm', '-rf', os.path.join(dir_name, name))
|
||||
|
||||
exec('cp', '/.new_rootfs/etc/pacman.conf', '/.new.etc')
|
||||
exec('rm', '-rf', '/.new.var.lib/pacman')
|
||||
|
|
Loading…
Reference in a new issue