diff options
Diffstat (limited to 'src/GLIUtility.py')
-rw-r--r-- | src/GLIUtility.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/GLIUtility.py b/src/GLIUtility.py index 13670ea..f04a7e8 100644 --- a/src/GLIUtility.py +++ b/src/GLIUtility.py @@ -919,11 +919,10 @@ def get_grp_pkgs_from_cd(): def get_kernpkgs_from_cd(): kernpkgs = {} try: - f_kernpkgs = open("/usr/livecd/kernpkgs.txt", "r") + for x in open("/usr/livecd/kernelpkgs.txt", "r").readline().strip().split(): + kernpkgs[x] = spawn(r"cat /var/db/pkg/" + x + r"-*/DESCRIPTION", return_output=True)[1].strip() except: - return - for x in f_kernpkgs: - kernpkgs[x] = spawn(r"cat /var/db/pkg/" + x + r"-*/DESCRIPTION", return_output=True)[1].strip() + pass return kernpkgs def get_keymaps(): |