summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-includes/usr/local/sbin/tails-additional-software
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-includes/usr/local/sbin/tails-additional-software')
-rwxr-xr-xconfig/chroot_local-includes/usr/local/sbin/tails-additional-software13
1 files changed, 6 insertions, 7 deletions
diff --git a/config/chroot_local-includes/usr/local/sbin/tails-additional-software b/config/chroot_local-includes/usr/local/sbin/tails-additional-software
index b42f3de..12bb5b5 100755
--- a/config/chroot_local-includes/usr/local/sbin/tails-additional-software
+++ b/config/chroot_local-includes/usr/local/sbin/tails-additional-software
@@ -66,14 +66,13 @@ def has_additional_packages_list():
def get_additional_packages():
"""Returns the list of all the additional packages
"""
- if not has_additional_packages_list():
- return None
packages = []
- with open(PACKAGES_LIST_FILE) as f:
- for line in f:
- line = line.strip()
- if line: packages.append(line)
- f.closed
+ if has_additional_packages_list():
+ with open(PACKAGES_LIST_FILE) as f:
+ for line in f:
+ line = line.strip()
+ if line: packages.append(line)
+ f.closed
return packages
def install_additional_packages():