Timothée Ravier
Timothée Ravier
I've found the following code to change to implement this functionality: https://github.com/fedora-infra/bodhi/blob/7a2e0685f6ae5ecb4db606f67c16616566853e94/bodhi-server/bodhi/server/models.py#L2388 https://github.com/fedora-infra/bodhi/blob/7a2e0685f6ae5ecb4db606f67c16616566853e94/bodhi-server/bodhi/server/templates/update.html#L10 https://github.com/fedora-infra/bodhi/blob/7a2e0685f6ae5ecb4db606f67c16616566853e94/bodhi-server/bodhi/server/templates/update.html#L187 https://github.com/fedora-infra/bodhi/blob/7a2e0685f6ae5ecb4db606f67c16616566853e94/bodhi-server/tests/test_models.py#L2297
Reference for the rpm-ostree side: https://coreos.github.io/rpm-ostree/administrator-handbook/#using-overrides-and-usroverlay
This is potentially linked to the window being maximized. For Element, un-maximizing the window got me the application back in a working state: https://github.com/flathub/im.riot.Riot/issues/376#issuecomment-1608102533
Let's split the vendor update into its own commit to make reviewing the change easier.
Thanks for the detailed options! Could option C be implemented by running `python -m compileall` (https://docs.python.org/3/library/compileall.html) on all `.py` files in `/usr`? How would we do option D?
> There are .py files in /usr without .pyc files and we want to keep them that way. But otherwise, yes, this is correct. Could you explain why we should...
> * We (Fedora Python maintainers) have no idea where to plug this in. For Fedora Atomic Desktops, we can plug this at the end of https://pagure.io/workstation-ostree-config/blob/main/f/fedora-common-ostree.yaml#_104, which is basically...
Let's try to find the rough list of commands to do option C & D: Option C: > 1. find all .pyc files we can understand (by path) > 2....
> At that point, are the mtimes of files in /usr already zero? If they are, we can plug in both C and D. If they are not, we would...
I've adapted your script to include finding the files: ``` #!/usr/bin/env python3 import os import re MIN_MAGIC = 3390 # The first magic number supporting PEP 552 ZERO = bytes((0,...