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

fix potential erroneous handling of extension data. #870

Closed
wants to merge 8 commits into from

Conversation

tsteven4
Copy link
Contributor

If an ArchiveDownloadError was raised:

  1. on the first pass through the loop an error could occur "UnboundLocalError:
    cannot access local variable 'extensions_xml_text' where it is not
    associated with a value"
  2. on subsequent passes the previous value of extensions_xml_text could
    be reused inappropriately.

Also use QtRepoProperty.known_extensions for improved maintainability,
i.e. the list of possible extensions is only defined in one place.

If an ArchiveDownloadError was raised:
1. on the first pass through the loop an error could occur "UnboundLocalError:
   cannot access local variable 'extensions_xml_text' where it is not
   associated with a value"
2. on subsequent passes the previous value of extensions_xml_text could
   be reused inappropriately.

Also use QtRepoProperty.known_extensions for improved maintainability,
i.e. the list of possible extensions is only defined in one place.
@tsteven4 tsteven4 marked this pull request as draft December 24, 2024 12:17
@tsteven4
Copy link
Contributor Author

tsteven4 commented Dec 24, 2024

We need the list-qt test back online (#828)!

This comment is irrelevant to this issue.

@tsteven4 tsteven4 marked this pull request as ready for review December 24, 2024 12:28
@tsteven4 tsteven4 marked this pull request as draft December 25, 2024 03:49
@tsteven4
Copy link
Contributor Author

I still working on the test. Feel free to close this PR and go with #868 if you prefer.

@tsteven4 tsteven4 closed this Dec 25, 2024
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.

1 participant