chore: fix drop-overlay functionality
This commit is contained in:
parent
449a7da8ae
commit
9bf1cf1aa7
1 changed files with 9 additions and 2 deletions
11
akshara
11
akshara
|
@ -309,10 +309,17 @@ def handle_system_packages(operation):
|
|||
if operation == 'set-custom-packages':
|
||||
operation = ['-Sy', '--needed', '--noconfirm']
|
||||
elif operation == 'drop-overlay':
|
||||
exec('rm', '-f', '/.blend-overlays/future-usr/.okay')
|
||||
exec('rm', '-f', '/.blend-overlays/future-varlibpacman/.okay')
|
||||
exec('rm', '-rf', '/.blend-overlays/future-usr')
|
||||
exec('rm', '-rf', '/.blend-overlays/future-varlibpacman')
|
||||
|
||||
exec('mkdir', '-p', '/.blend-overlays/future-usr')
|
||||
exec('mkdir', '-p', '/.blend-overlays/future-varlibpacman')
|
||||
|
||||
exec('rm', '-f', '/.custom_pkg_list')
|
||||
exec('touch', '/.custom_pkg_list')
|
||||
|
||||
exec('touch', '/.blend-overlays/future-usr/.okay')
|
||||
exec('touch', '/.blend-overlays/future-varlibpacman/.okay')
|
||||
exit()
|
||||
|
||||
if exec('systemd-nspawn', '-D', '/.blendrw', '--', 'pacman', *operation, '--', *args.pkg, stdout=sys.stdout, stderr=sys.stderr) != 0:
|
||||
|
|
Loading…
Reference in a new issue