Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

- **workflow:** Drop the `v` prefix from the release title ([#6761](https://github.com/ScoopInstaller/Scoop/issues/6761))

### Code Refactoring

- **scoop-info:** Resolve the license identifier before URL and separator matching ([#6770](https://github.com/ScoopInstaller/Scoop/issues/6770))

## [v0.6.0](https://github.com/ScoopInstaller/Scoop/compare/v0.5.3...v0.6.0) - 2026-09-30

### Features
Expand Down
20 changes: 9 additions & 11 deletions libexec/scoop-info.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,17 @@ if ($manifest.homepage) {
}
# Show license
if ($manifest.license) {
$item.License = if ($manifest.license.identifier -and $manifest.license.url) {
if ($verbose) { "$($manifest.license.identifier) ($($manifest.license.url))" } else { $manifest.license.identifier }
} elseif ($manifest.license -match '^((ht)|f)tps?://') {
$manifest.license
} elseif ($manifest.license -match '[|,]') {
if ($verbose) {
"$($manifest.license) ($(($manifest.license -Split '\||,' | ForEach-Object { "https://spdx.org/licenses/$_.html" }) -join ', '))"
} else {
$manifest.license
}
$identifier = if ($manifest.license.identifier) { $manifest.license.identifier } else { $manifest.license }
$url = if ($manifest.license.url) {
$manifest.license.url
} elseif ($identifier -match '^((ht)|f)tps?://') {
$null
} elseif ($identifier -match '[|,]') {
(($identifier -Split '\||,' | ForEach-Object { "https://spdx.org/licenses/$($_.Trim()).html" }) -join ', ')
Comment thread
coderabbitai[bot] marked this conversation as resolved.
} else {
if ($verbose) { "$($manifest.license) (https://spdx.org/licenses/$($manifest.license).html)" } else { $manifest.license }
"https://spdx.org/licenses/$identifier.html"
}
$item.License = if ($verbose -and $url) { "$identifier ($url)" } else { $identifier }
}

if ($manifest.depends) {
Expand Down