-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add srpmdownloader #23
base: main
Are you sure you want to change the base?
Conversation
…p and download intochroot
} | ||
|
||
// removeDuplicateStrings will remove duplicate entries from a string slice | ||
func removeDuplicateStrings(packList []string) (deduplicatedPackList []string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be made a library function
|
||
// parsePackListFile will parse a list of packages to pack if one is specified. | ||
// Duplicate list entries in the file will be removed. | ||
func parsePackListFile(packListFile string) (packList []string, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be made a library function
|
||
// findSPECFiles finds all SPEC files that should be considered for packing. | ||
// Takes into consideration a packList if provided. | ||
func findSPECFiles(specsDir string, packList []string) (specFiles []string, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be made a library function
// This is on in srpmpacker. However, this prevents empty lists | ||
// if len(packList) == 0 { | ||
// err = fmt.Errorf("cannot have empty pack list (%s)", packListFile) | ||
// } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// This is on in srpmpacker. However, this prevents empty lists | |
// if len(packList) == 0 { | |
// err = fmt.Errorf("cannot have empty pack list (%s)", packListFile) | |
// } |
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-static
subpackages, etc.) have had theirRelease
tag incremented../cgmanifest.json
,./toolkit/tools/cgmanifest.json
,./toolkit/scripts/toolchain/cgmanifest.json
,.github/workflows/cgmanifest.json
)./SPECS/LICENSES-AND-NOTICES/data/licenses.json
,./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md
,./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON
)*.signatures.json
filessudo make go-tidy-all
andsudo make go-test-coverage
passSummary
Fix quickstart and the srpm download command
https://microsoft.visualstudio.com/OS/_sprints/taskboard/ft_iot_Mariner/OS/2209?workitem=40942962
//TO DO
// ADD TLS certs for srpm servers that need them
// Bug in SRPM_URL_LIST where setting the URL to use 1.0 still curls a .cm2 srpm (fails when same cmd runs outside of toolkit)
// Bug where the SRPM_PACK_LIST= will not clear srpm_pack_list_file ($(BUILD_SRPMS_DIR)/pack_list.txt) even if argument is empty
// A lot of code duplication w/ srpmpacker. Should make a library
Change Log
Does this affect the toolchain?
YES/NO
Associated issues
Links to CVEs
Test Methodology