repoutils

package
v0.0.0-...-6a3673d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindCreateRepoCommand

func FindCreateRepoCommand() (cmd string, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL