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

FIX [packageLookup] setOfficialApt for packages with the same name #15

Merged
merged 4 commits into from
Aug 18, 2017

Conversation

lobiCode
Copy link
Contributor

If two or more "apt" packages have the same name, then an
official field has has been set only for the last on the list.
Now all "apt" packages go through checking process.

with the same name

If two or more "apt" packages have the same name, then an
official field has has been set only for the last on the list.
Now all "apt" packages go through checking process.
// extract keys from the map of all packages
func officialMapToList(officialMap map[string]*Package) []string {
// getNameOfPackages returns the name of the packages
func getNameOfPackages(packages []*Package) []string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getNamesOfPackages

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. renamed getNamesOfPackages -> getNamesOfPackages

@@ -124,15 +116,15 @@ func TestGetRepositoriesFromSourcesList(t *testing.T) {
}

func TestOfficialMapToList(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You renamed this method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function has been renamed.

@lobiCode lobiCode merged commit beca2c9 into master Aug 18, 2017
@lobiCode lobiCode deleted the fix-pkg-lookup branch August 18, 2017 10:19
@dominikznidar
Copy link
Contributor

You forgot to squash your commits.

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.

None yet

2 participants