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

[cpackget] add command shall download the pack and extract the license files to .Download #196 #198

Closed
wants to merge 5 commits into from

Conversation

thorstendb-ARM
Copy link
Collaborator

cpackget is already prepared to just extract the EULA and then quit, and to auto-accept EULA in a next step. Changed the program flow to skip showing the license / preparing the license UI if already the command line specifies the extract option.

If the license file already exists it will be deleted (error if not possible).

Added for encoded progress:

  • L: License file follows I: [L:F"C:\Users\user\AppData\Local\Arm\Packs.Download\Keil.MDK-Middleware_Graphics.1.3.0.pack.license.rtf"]

see #196

…e files to .Download #196

cpackget is already prepared to just extract the EULA and then quit, and to auto-accept EULA in a next step.
Changed the program flow to skip showing the license / preparing the license UI if already the command line specifies the extract option.

If the license file already exists it will be deleted (error if not possible).

Added for encoded progress:
* L: License file follows
I: [L:F"C:\Users\user\AppData\Local\Arm\Packs\.Download\Keil.MDK-Middleware_Graphics.1.3.0.pack.license.rtf"]
@codecov-commenter
Copy link

codecov-commenter commented Aug 10, 2023

Codecov Report

Patch coverage: 29.54% and project coverage change: -1.29% ⚠️

Comparison is base (29f3345) 78.96% compared to head (48f8016) 77.67%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #198      +/-   ##
==========================================
- Coverage   78.96%   77.67%   -1.29%     
==========================================
  Files          22       22              
  Lines        2586     2625      +39     
==========================================
- Hits         2042     2039       -3     
- Misses        403      435      +32     
- Partials      141      151      +10     
Files Changed Coverage Δ
cmd/utils/encodedProgress.go 100.00% <ø> (ø)
cmd/installer/root.go 68.13% <20.00%> (-2.41%) ⬇️
cmd/installer/pack.go 76.35% <46.15%> (-1.02%) ⬇️
cmd/commands/root.go 67.03% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

soumeh01
soumeh01 previously approved these changes Aug 10, 2023
@soumeh01 soumeh01 dismissed their stale review August 10, 2023 09:54

Tests are failing

"test installing pack with license extracted but prev license exist"
- erronous files are deleted
@thorstendb-ARM
Copy link
Collaborator Author

changes have been integrated during #197

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.

3 participants