fix: do not delete dirs under /var/lib

This commit is contained in:
Rudra Saraswat 2024-02-10 11:25:04 +05:30
parent 08ffe04565
commit 072e93ebf0

View file

@ -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')