From fdd84d1f9950ee8ba97c4c9a0c70654107ba9015 Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Mon, 27 Oct 2014 16:58:42 +0100 Subject: [PATCH] Don't crash when packageOperations is empty --- src/modules/packages/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/packages/main.py b/src/modules/packages/main.py index 2413990b4..d132c8ce9 100644 --- a/src/modules/packages/main.py +++ b/src/modules/packages/main.py @@ -76,8 +76,9 @@ def run(): for entry in operations: run_operations(pkgman, entry) - operations = libcalamares.globalstorage.value("packageOperations") - for entry in operations: - run_operations(pkgman, entry) + if libcalamares.globalstorage.contains("pagkageOperations"): + operations = libcalamares.globalstorage.value("packageOperations") + for entry in operations: + run_operations(pkgman, entry) return None