~enr0n/ubuntu-release-upgrader:fix-typo-in-help

Last commit made on 2022-04-14
Get this branch:
git clone -b fix-typo-in-help https://git.launchpad.net/~enr0n/ubuntu-release-upgrader
Only Nick Rosbrook can upload to this branch. If you are Nick Rosbrook please log in for upload directions.

Branch merges

Branch information

Name:
fix-typo-in-help
Repository:
lp:~enr0n/ubuntu-release-upgrader

Recent commits

bf6efe5... by Nick Rosbrook

do-release-upgrade: Fix a typo in do-release-upgrade --help

s/comma-seprated/comma-separated

692ca2d... by Brian Murray

releasing package ubuntu-release-upgrader version 1:22.04.9

3a62d49... by Brian Murray

Run pre-build.sh: updating mirrors, demotions, and translations.

b861f6d... by Nick Rosbrook

DistUpgrade: do not make UI dialog calls while EUID != 0

The screen lock prevention code has to temporarily set the EUID to the
non-root user UID so that it can make a DBus call on the user's session
bus. While the EUID is temporarily non-zero, a UI dialog may be
displayed to report the success of inhibiting the screen lock. For most
cases this is OK, but it causes an exception for the DistUpgradeViewKDE
frontend. This is because the view.information() call needs to read
dialog_error.ui from the tmpdir, but the non-root user does not have
permission to read this file.

To fix this, in _inhibitIdle(), move the information dialog call to
after the finally block which re-sets the EUID.

089693b... by Nick Rosbrook

do-release-upgrade: preserve env vars needed for screen lock prevention

The screen lock prevention code relies on environment variables such as
DBUS_SESSION_BUS_ADDRESS being preserved, since the
org.freedesktop.ScreenSaver DBus interface is needed. This works in
cases where the dist-upgrade script is invoked with 'sudo -E' (e.g.
DistUpgradeViewText frontend). However, when pkexec is used (e.g.
DistUpgradeViewGtk3 frontend) the environment variables cannot be
preserved as per pkexec's design.

Add an --env flag to do-release-upgrade that accepts a comma-separated
list of environment variables (e.g. VAR1=VALUE1,VAR2=VALUE2) which should be set when
executing the dist-upgrade script. This approach is similar to the
existing workaround for RELEASE_UPGRADER_ALLOW_THIRD_PARTY, but is
generalized to allow any environment variables to be set.

Finally, when the DistUpgradeViewGtk3 or DistUpgradeViewKDE frontends
are used, and the do-release-upgrade script is re-exec'd with pkexec,
set the DBUS_SESSION_BUS_ADDRESS and XDG_SESSION_TYPE variables with
--env so that the screen lock prevention code works with these
frontends.

LP: #1968607

e43fc51... by Brian Murray

releasing package ubuntu-release-upgrader version 1:22.04.8

6090ebd... by Brian Murray

Modify the ubuntu-release-upgrader apport package hook to also gather recent messages in journalctl and a list of crashes in /var/crash as one of those may have negatively affected the upgrade process.

e8a36a9... by Brian Murray

d/91-release-upgrade: try to use the less expensive /etc/lsb-release to check if we are in a devel release (LP: #1893716)

8caff98... by Brian Murray

Update the firefox deb2snap entry so that it includes Ubuntu Studio.

c34bdb7... by Brian Murray

releasing package ubuntu-release-upgrader version 1:22.04.7