[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()
This commit is contained in:
Fabio Erculiani
2011-05-06 12:21:38 +02:00
parent 5cc2ffed2b
commit 4370cebd6c

View File

@@ -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):