From 4370cebd6ccbcb360ce5daba377f3e3ffe0aece5 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 6 May 2011 12:21:38 +0200 Subject: [PATCH] [equo] text_ui: when calling execv*, use "equo" as application name (this will work in any case) When debugging entropy client it's common to use "python equo.py", but this doesn't work well with equo upgrade autorespawn code that is using execvp() --- client/text_ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/text_ui.py b/client/text_ui.py index 00d338bcf..222248465 100644 --- a/client/text_ui.py +++ b/client/text_ui.py @@ -531,7 +531,7 @@ def upgrade_packages(entropy_client, onlyfetch = False, replay = False, # Entropy Client SystemSettings plugin entropy_client.Settings().clear() - if update: + if update and not etpUi['pretend']: # if updates have been installed, check if there are more # to come (perhaps critical updates were installed) _upgrade_packages_respawn(entropy_client) @@ -549,7 +549,7 @@ def _upgrade_packages_respawn(entropy_client): _("There are more updates to install, reloading Entropy"),) )) # then spawn a new process entropy_client.shutdown() - os.execvp(sys.argv[0], sys.argv) + os.execvp("equo", sys.argv) def branch_hop(entropy_client, branch):