Documentation ¶
Index ¶
- func FindCreateRepoCommand() (cmd string, err error)
- func GetAllRepoData(repoURLs, repoFiles []string, workerTar, buildDir, repoUrlsFile string) (namesToURLs map[string]string, err error)
- func RestoreClonedRepoContents(cloner repocloner.RepoCloner, srcFile string) (err error)
- func SaveClonedRepoContents(cloner repocloner.RepoCloner, dstFile string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCreateRepoCommand ¶
FindCreateRepoCommand searches for createrepo or createrepo_c in $PATH and returns the first one found
func GetAllRepoData ¶
func GetAllRepoData(repoURLs, repoFiles []string, workerTar, buildDir, repoUrlsFile string) (namesToURLs map[string]string, err error)
GetAllRepoData returns a map of package names to URLs for all packages available in the given repos. It uses a chroot to run repoquery.
func RestoreClonedRepoContents ¶
func RestoreClonedRepoContents(cloner repocloner.RepoCloner, srcFile string) (err error)
RestoreClonedRepoContents restores a cloner's repo contents using a JSON file at `srcFile`. Will convert the cloned content into a repo and verify its content is correct.
This routine requires a clean build environment. If there are already packages in the cache (with exception of the toolchain packages) then this routine will return an error. This is done to ensure the cache only contains the desired packages.
func SaveClonedRepoContents ¶
func SaveClonedRepoContents(cloner repocloner.RepoCloner, dstFile string) (err error)
SaveClonedRepoContents saves a cloner's repo contents to a JSON file at `dstFile`.
Types ¶
This section is empty.