Skip to content
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

Fail on unsuccessful cab_extract download #3150

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Fail on unsuccessful cab_extract download #3150

merged 1 commit into from
Nov 17, 2023

Conversation

vercingetorx
Copy link
Contributor

@vercingetorx vercingetorx commented Nov 9, 2023

Description

The __step_cab_extract method currently returns True even if the download fails. This leads to Bottles showing a dependency as installed when it isn't. This fix adds the needed return logic for such cases.

Fixes #3145

Type of change

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.
Minimal change -> not tested.

@vercingetorx vercingetorx changed the title Fail on dependency download failure Fail on unsuccessful dependency download Nov 9, 2023
@vercingetorx vercingetorx changed the title Fail on unsuccessful dependency download Fail on unsuccessful cab_extract download Nov 9, 2023
Copy link

fab-sonarqube bot commented Nov 17, 2023

Copy link
Contributor

Pylint result on modfied files:
************* Module bottles.backend.managers.dependency
bottles/backend/managers/dependency.py:84:12: W0105: String statement has no effect (pointless-string-statement)
bottles/backend/managers/dependency.py:102:12: W0105: String statement has no effect (pointless-string-statement)
bottles/backend/managers/dependency.py:113:12: W0105: String statement has no effect (pointless-string-statement)
bottles/backend/managers/dependency.py:127:12: W0105: String statement has no effect (pointless-string-statement)
bottles/backend/managers/dependency.py:142:12: W0105: String statement has no effect (pointless-string-statement)
bottles/backend/managers/dependency.py:159:12: W0105: String statement has no effect (pointless-string-statement)

@orowith2os orowith2os merged commit 830b09a into bottlesdevs:main Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request]: Make a dependency install fail if cab_extract fails.
2 participants