Skip to content

Commit

Permalink
use only the license filename
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin committed Jul 14, 2023
1 parent b048c6c commit ea349cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/fanal/analyzer/language/python/packaging/packaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (a packagingAnalyzer) fillAdditionalData(fsys fs.FS, filePath string, app *
licenses = append(licenses, lic)
continue
}
licenseFielPath := strings.TrimPrefix(lic, "file://")
licenseFielPath := filepath.Base(strings.TrimPrefix(lic, "file://"))

findings, err := classifyLicense(filePath, licenseFielPath, a.licenseClassifierConfidenceLevel, fsys)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Keywords: annotations,backport,checker,checking,function,hinting,hints,type,type
Author-email: "Guido van Rossum, Jukka Lehtosalo, Łukasz Langa, Michael Lee" <[email protected]>
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE.txt
License-File: licenses/LICENSE.txt
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Expand Down

0 comments on commit ea349cd

Please sign in to comment.