Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Possible error in pkg name matching #9

Closed
steffenfritz opened this issue Oct 25, 2019 · 0 comments
Closed

Possible error in pkg name matching #9

steffenfritz opened this issue Oct 25, 2019 · 0 comments
Assignees
Labels

Comments

@steffenfritz
Copy link
Owner

HasPrefix compares the prefix, including the dash. If a library has a pkg name as prefix, this could lead to false positives. So we probably need the full package name and the ´affected´ after the dash in the compare.

       for _, lpkgname := range locpkglist {
			if strings.HasPrefix(lpkgname, ipkgname+"-") {
				pkgListed[lpkgname] = true
@steffenfritz steffenfritz self-assigned this Oct 25, 2019
steffenfritz added a commit that referenced this issue Oct 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant