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 pattern for getting same name files #455

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

mdanish-kh
Copy link
Contributor

@mdanish-kh mdanish-kh commented Sep 24, 2023

Not sure why/how but the call to Path.ChangeExtension() incorrectly modifies the file name for some files.
Instead of returning expected pattern Thunderbird%20Setup%20102.6.0* (for actual file name Thunderbird%20Setup%20102.6.0.msi), it returns Thunderbird%20Setup%20102.6.msi (truncating the '0' instead of the extension)

To fix this, manually concatenated the strings to form a matching pattern.

Validation

Run wingetcreate update Mozilla.Thunderbird --version 102.6.0 -i

  1. Give URL: https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/102.6.0/win64/en-US/Thunderbird%20Setup%20102.6.0.msi
  2. Then: https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/102.6.0/win64/en-GB/Thunderbird%20Setup%20102.6.0.msi
  3. Then: https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/102.6.0/win64/de/Thunderbird%20Setup%20102.6.0.msi

Microsoft Reviewers: Open in CodeFlow

@mdanish-kh mdanish-kh requested a review from a team as a code owner September 24, 2023 20:16
@mdanish-kh mdanish-kh requested review from yao-msft and ryfu-msft and removed request for a team September 24, 2023 20:16
@ryfu-msft
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mdanish-kh
Copy link
Contributor Author

This just needs a re-run it seems

@exspandsome
Copy link

exspandsome commented Sep 25, 2023 via email

@ryfu-msft
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ryfu-msft ryfu-msft merged commit 7d0f945 into microsoft:main Sep 25, 2023
4 checks passed
@mdanish-kh mdanish-kh deleted the fixPattern branch September 25, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants