-
Notifications
You must be signed in to change notification settings - Fork 256
Provide *-full packages for Linux, and remove container.tar from default ones
#1423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
almet
wants to merge
22
commits into
main
Choose a base branch
from
1069-dangerzone-slim-packages
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6766d78
Adapt to dangerzone-image split
almet 7a13788
Packaging: Fedora dangerzone-slim version
almet 230e1c4
Packaging: Debian dangerzone-slim version
almet 6269ead
Update dodo.py to handle slim/full variants
almet 4b94f66
Packaging: container.tar moves to -full package
almet f9b1607
GUI: handle missing container.tar
almet 764934a
CLI: error out when no container image is found
almet b9945bf
Linux: Make machine-related tasks output to DEBUG
almet d729de8
Docs: Update github.com/freedomofpress/packages links
almet 8db71a3
CI: test dangerzone-slim.deb and dangerzone-full.rpm
almet 2015e4e
Add changelog entry
almet cdec2fe
Dev scripts: persist settings and auto-build dev image
almet 8703bde
Add debian reproducibility
almet 15e752c
Ensure the image is available with Podman
almet f578304
Retry wsl --update on Windows runners
almet 26f92cc
Fixup: Add dangerzone-full.deb in the matrix
almet 6d881b2
Fixup: point to Linux installation instructions
almet 8c6f33c
Fixup: update language in the user prompt
almet 4de0948
Fixup: prompt the user even if they explicitely disabled updates
almet c174332
Fixup: Remove dangerzone-qubes.deb
almet 430f317
Fixup: use matrix for Fedora builds (full and slim)
almet 8785bee
Fixup: update logic, and tests
almet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -511,6 +511,9 @@ def __init__(self, dangerzone: DangerzoneGui) -> None: | |
| task_update_check.needs_user_input.connect( | ||
| self.handle_needs_user_input_enable_updates | ||
| ) | ||
| task_update_check.needs_user_input_download.connect( | ||
| self.handle_needs_user_input_download_container | ||
| ) | ||
|
|
||
| task_container_install.load_container.connect( | ||
| self.status_bar.handle_task_container_install_local | ||
|
|
@@ -685,10 +688,31 @@ def handle_update_check_completed(self) -> None: | |
| self.dangerzone.settings.save() | ||
|
|
||
| def handle_needs_user_input_enable_updates(self) -> None: | ||
| """Handle the prompt to enable updates (container already available).""" | ||
| check = prompt_for_checks(self.dangerzone) | ||
| if check is not None: | ||
| self.dangerzone.settings.set("updater_check_all", check, autosave=True) | ||
|
|
||
| def handle_needs_user_input_download_container( | ||
| self, req: startup.PromptRequest | ||
| ) -> None: | ||
| """Handle the prompt to download container (no container available). | ||
|
|
||
| This is a blocking prompt - the user must accept or the app will shut down. | ||
| """ | ||
| check = prompt_for_checks(self.dangerzone, download_required=True) | ||
| if check is True: | ||
| req.reply(True) | ||
| else: | ||
| # User declined or pressed X - shutdown | ||
| req.reply(False) | ||
| QtCore.QTimer.singleShot(0, self._handle_download_declined) | ||
|
Comment on lines
+708
to
+709
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did we use this method of exiting the app versus |
||
|
|
||
| def _handle_download_declined(self) -> None: | ||
| log.debug("User declined container download, shutting down") | ||
| # Shutting down using exit(2) because nothing has been started yet. | ||
| self.exit(2) | ||
|
|
||
| def handle_needs_user_input_stop_others(self, req: startup.PromptRequest) -> None: | ||
| machine_name = req.req_data["name"] | ||
| log.debug(f"Prompting user to stop Podman machine '{machine_name}'") | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.