From ad75ac69416bbdb92964625dc7018b9d0a44debc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:47:11 +0200 Subject: Merging upstream version 7.0.18-dfsg. Signed-off-by: Daniel Baumann --- src/VBox/Frontends/VBoxShell/vboxshell.py | 27 ++++++++++++++++++---- src/VBox/Frontends/VirtualBox/nls/VirtualBox_es.ts | 14 +++++------ 2 files changed, 30 insertions(+), 11 deletions(-) (limited to 'src/VBox/Frontends') diff --git a/src/VBox/Frontends/VBoxShell/vboxshell.py b/src/VBox/Frontends/VBoxShell/vboxshell.py index bd0222c7..f1083dd1 100755 --- a/src/VBox/Frontends/VBoxShell/vboxshell.py +++ b/src/VBox/Frontends/VBoxShell/vboxshell.py @@ -1,7 +1,28 @@ -#!/usr/bin/env python +#!/bin/sh # -*- coding: utf-8 -*- # $Id: vboxshell.py $ +# The following checks for the right (i.e. most recent) Python binary available +# and re-starts the script using that binary (like a shell wrapper). +# +# Using a shebang like "#!/bin/env python" on newer Fedora/Debian distros is banned [1] +# and also won't work on other newer distros (Ubuntu >= 23.10), as those only ship +# python3 without a python->python3 symlink anymore. +# +# Note: As Python 2 is EOL, we consider this last (and hope for the best). +# +# [1] https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/2PD5RNJRKPN2DVTNGJSBHR5RUSVZSDZI/ +''':' +for python_bin in python3 python python2 +do + type "$python_bin" > /dev/null 2>&1 && exec "$python_bin" "$0" "$@" +done +echo >&2 "ERROR: Python not found! Please install this first in order to run this program." +exit 1 +':''' + +from __future__ import print_function + """ VirtualBox Python Shell. @@ -19,8 +40,6 @@ Finally, shell allows arbitrary custom extensions, just create P.S. Our apologies for the code quality. """ -from __future__ import print_function - __copyright__ = \ """ Copyright (C) 2009-2023 Oracle and/or its affiliates. @@ -43,7 +62,7 @@ along with this program; if not, see . SPDX-License-Identifier: GPL-3.0-only """ -__version__ = "$Revision: 155244 $" +__version__ = "$Revision: 162975 $" import gc diff --git a/src/VBox/Frontends/VirtualBox/nls/VirtualBox_es.ts b/src/VBox/Frontends/VirtualBox/nls/VirtualBox_es.ts index 8b92199e..1e3150da 100644 --- a/src/VBox/Frontends/VirtualBox/nls/VirtualBox_es.ts +++ b/src/VBox/Frontends/VirtualBox/nls/VirtualBox_es.ts @@ -4843,7 +4843,7 @@ Dynamically allocated storage MediumVariant - Almacenamiento resevado dinámicamente + Almacenamiento reservado dinámicamente New dynamically allocated storage @@ -4853,7 +4853,7 @@ Dynamically allocated differencing storage MediumVariant - Almacenamiento diferenciado resevado dinámicamente + Almacenamiento diferenciado reservado dinámicamente Fixed size storage @@ -4878,7 +4878,7 @@ Dynamically allocated compressed storage MediumVariant - Almacenamiento comprimido resevado dinámicamente + Almacenamiento comprimido reservado dinámicamente Dynamically allocated differencing compressed storage @@ -31727,7 +31727,7 @@ Versión %1 Dynamically allocated storage - Almacenamiento resevado dinámicamente + Almacenamiento reservado dinámicamente Fixed size storage @@ -31833,12 +31833,12 @@ Versión %1 Dynamically allocated storage MediumVariant - Almacenamiento resevado dinámicamente + Almacenamiento reservado dinámicamente Dynamically allocated differencing storage MediumVariant - Almacenamiento diferenciado resevado dinámicamente + Almacenamiento diferenciado reservado dinámicamente Fixed size storage @@ -31863,7 +31863,7 @@ Versión %1 Dynamically allocated compressed storage MediumVariant - Almacenamiento comprimido resevado dinámicamente + Almacenamiento comprimido reservado dinámicamente Dynamically allocated differencing compressed storage -- cgit v1.2.3