reprepro

package module
v0.0.0-...-8b7aa1e Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2015 License: MIT Imports: 9 Imported by: 4

README

go-reprepro

package main

import (
	"fmt"

	"pault.ag/go/reprepro"
)

func main() {
	repo := reprepro.NewRepo("/home/tag/tmp/repo/")
	err := repo.Include("unstable", "/home/tag/dev/debian/golang/golang-pault-go-debian_0.1+git20150726.2.66db6de-1_source.changes")
	fmt.Printf("%s\n", err)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildNeedingPackage

type BuildNeedingPackage struct {
	Source   string
	Version  string
	Location string
	Arch     string
}

type LogEntry

type LogEntry struct {
	Action  string
	Suite   string
	Source  string
	Version version.Version
	Changes control.Changes
}

type Repo

type Repo struct {
	Basedir   string
	Arguments []string
}

func GetWorkingRepo

func GetWorkingRepo() *Repo

func NewRepo

func NewRepo(path string, args ...string) *Repo

Create a new reprepro.Repo object given a filesystem path to the Repo.

func (*Repo) BuildNeeding

func (repo *Repo) BuildNeeding(suite string, arch string, glob *string) ([]BuildNeedingPackage, error)

func (*Repo) Check

func (repo *Repo) Check() error

func (*Repo) CheckPool

func (repo *Repo) CheckPool() error

func (*Repo) Command

func (repo *Repo) Command(args ...string) *exec.Cmd

func (*Repo) Export

func (repo *Repo) Export() error

func (*Repo) Include

func (repo *Repo) Include(suite string, changes string) error

func (Repo) ParseLogEntry

func (repo Repo) ParseLogEntry(params []string) (*LogEntry, error)

func (*Repo) ProcessIncoming

func (repo *Repo) ProcessIncoming(rule string) error

Jump to

Keyboard shortcuts

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