Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PullAll ¶
func PullAll(repo *git.Repository) error
Walk all the local branches and perform a git pull.
func RpmMirror ¶
Does all the steps to mirror an RPM: clone, setup branches, fetch, pull, etc. Will get the existing repo, in whatever state it may be in, in to an updated state.
func SetupRpmBranches ¶
func SetupRpmBranches(repo *git.Repository) error
Setup a local branch corresponding to each remote branch.
git branch -a ... fedora/31 -> remotes/fedora/f31
This makes sure all the local branches exist and are up to date.
func SetupRpmRemotes ¶
func SetupRpmRemotes(repo *git.Repository, rcs []RemoteConfig) error
For an existing Git repo and an RPM (e.g. cowsay) Setup the remotes.
This is a best effort procedure. Not all remotes will be available (fedora might not have package x). As long as at least one remote works it is a success.
Types ¶
type Config ¶
type Config struct { Origin RemoteConfig Remotes []RemoteConfig }
func ExecConfigTemplate ¶
Given a config object (template), fill out the variables.
"URL": ["https://src.fedoraproject.org/rpms/{{.RPM}}.git"]
func LoadConfig ¶
type RemoteConfig ¶
Click to show internal directories.
Click to hide internal directories.