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 dashboard to include packages without Source field (i.e ignition-fortress) #533

Merged
merged 2 commits into from
Oct 8, 2021

Conversation

j-rivero
Copy link
Contributor

@j-rivero j-rivero commented Oct 8, 2021

Fixes #505 . The reason because is not working in not really that we are not providing source packages for ignition-$collections but that is not mandatory to include a Source: clause in .deb packages. My hypothesis is: when there is a single binary package with the same name than the source package, the Source: field is omitted. This is the case for our ignition-$collection packages.

The PR is changing the previous grep:

grep -1 "Source: ${LIB}"

By:

grep -1 -m 1 -e "Source: ${LIB}" -e "Package: ${LIB}"

Adding -m 1 should make grep to stop on the first match (side effect, this can speed up the script). If we don't find the Source:field we fallback to look for the Package:

@j-rivero j-rivero requested a review from chapulina October 8, 2021 14:56
@j-rivero j-rivero changed the title Fix dashboard to include packages with Source filed (i.e ignition-fortress) Fix dashboard to include packages without Source field (i.e ignition-fortress) Oct 8, 2021
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Thanks for the clarification and the fix!

@chapulina chapulina merged commit 8003de9 into master Oct 8, 2021
@chapulina chapulina deleted the fix_tablesh_collections branch October 8, 2021 16:21
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.

Release source packages for collections
2 participants