Add -- back
This commit is contained in:
parent
966f0b06aa
commit
e56db5778e
1 changed files with 2 additions and 2 deletions
4
akshara
4
akshara
|
@ -276,11 +276,11 @@ def handle_system_packages(install):
|
|||
if args.noconfirm:
|
||||
operation.append('--noconfirm')
|
||||
elif install == 'remove':
|
||||
operation = '-Rn'
|
||||
operation = ['-Rn']
|
||||
if args.noconfirm:
|
||||
operation.append('--noconfirm')
|
||||
|
||||
if exec('systemd-nspawn', '-D', '/.blendrw', 'pacman', *operation, *args.pkg, stdout=sys.stdout, stderr=sys.stderr) != 0:
|
||||
if exec('systemd-nspawn', '-D', '/.blendrw', '--', 'pacman', '--', *operation, *args.pkg, stdout=sys.stdout, stderr=sys.stderr) != 0:
|
||||
error('error occurred during installation, abandoning changes')
|
||||
while exec('umount', '-l', '/.blendrw/usr', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) != 0:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue