tails-additional-software-remove 419 Bytes
Newer Older
1
2
3
4
#!/usr/bin/python3

import sys

5
from tailslib.additionalsoftware import (
6
7
8
9
10
11
12
13
14
15
    remove_additional_packages,
    get_additional_packages)

if len(sys.argv) != 2:
    sys.exit(2)

old_package = str(sys.argv[1])

additional_packages = get_additional_packages(search_new_persistence=True)
if old_package in additional_packages:
16
    remove_additional_packages({old_package}, search_new_persistence=True)
17
18
else:
    sys.exit(1)