-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Deny PKG installation without RAP #17828
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
base: master
Are you sure you want to change the base?
Conversation
|
I think the message only creates more questions than answers. |
|
|
||
| if (std::count(missing_licenses_short.begin(), missing_licenses_short.end(), '\n') < 5) | ||
| { | ||
| missing_licenses_short += std::string_view(filepath).substr(filepath.find_last_of(fs::delim) + 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of casting to stringview here?
|
|
||
| if (!missing_licenses.empty()) | ||
| { | ||
| gui_log.fatal("Failed to locate the game license file(s):\n%s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why fatal?
| } | ||
| else | ||
| { | ||
| pkg_log.notice("PKG need not a license file."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar
| return {}; | ||
| } | ||
|
|
||
| if (npd->license == 1) // Network license. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch
| } | ||
|
|
||
| // Check the ELF file class (32 or 64 bit). | ||
| const bool isElf32 = IsSelfElf32(elf_or_self); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
snake_case
The log error is remained, and if you install multiple PKGs it would only print the missing RAP file path.

Relates to #17805