From 1bda075ad07a4f2a57c8ed73be4daaf6eeb77c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Nizio?= Date: Sat, 16 May 2015 00:01:55 +0200 Subject: [PATCH] [entropy.client] while asking to accept the license, interpret EOF as "no" Otherwise it would loop indefinitely (bug 4849). --- client/solo/commands/_manage.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/solo/commands/_manage.py b/client/solo/commands/_manage.py index 62c9719d3..481e26fb8 100644 --- a/client/solo/commands/_manage.py +++ b/client/solo/commands/_manage.py @@ -765,8 +765,13 @@ class SoloManage(SoloCommand): while True: + action = _read_lic_selection() + if action is None: + # interpret EOF as "reject" + return 1 + try: - choice = int(_read_lic_selection()) + choice = int(action) except (ValueError, TypeError): continue