gentoo

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: GPL-3.0 Imports: 5 Imported by: 10

Documentation

Overview

Copyright (C) 2017-2019 Daniele Rondina <geaaru@sabayonlinux.org>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

View Source
const (
	PkgCondInvalid = 0
	// >
	PkgCondGreater = 1
	// >=
	PkgCondGreaterEqual = 2
	// <
	PkgCondLess = 3
	// <=
	PkgCondLessEqual = 4
	// =
	PkgCondEqual = 5
	// !
	PkgCondNot = 6
	// ~
	PkgCondAnyRevision = 7
	// =<pkg>*
	PkgCondMatchVersion = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GentooPackage

type GentooPackage struct {
	Name          string `json:"name",omitempty"`
	Category      string `json:"category",omitempty"`
	Version       string `json:"version",omitempty"`
	VersionSuffix string `json:"version_suffix",omitempty"`
	Slot          string `json:"slot",omitempty"`
	Condition     PackageCond
	Repository    string   `json:"repository",omitempty"`
	UseFlags      []string `json:"use_flags",omitempty"`
}

func ParsePackageStr

func ParsePackageStr(pkg string) (*GentooPackage, error)

return category, package, version, slot, condition

func (*GentooPackage) Admit

func (p *GentooPackage) Admit(i *GentooPackage) (bool, error)

func (*GentooPackage) GetP added in v0.4.1

func (p *GentooPackage) GetP() string

func (*GentooPackage) GetPF added in v0.4.1

func (p *GentooPackage) GetPF() string

func (*GentooPackage) GetPN added in v0.4.1

func (p *GentooPackage) GetPN() string

func (*GentooPackage) GetPV added in v0.4.1

func (p *GentooPackage) GetPV() string

func (*GentooPackage) GetPVR added in v0.4.1

func (p *GentooPackage) GetPVR() (ans string)

func (*GentooPackage) GetPackageName

func (p *GentooPackage) GetPackageName() (ans string)

func (*GentooPackage) OfPackage

func (p *GentooPackage) OfPackage(i *GentooPackage) (ans bool)

func (*GentooPackage) String

func (p *GentooPackage) String() string

type PackageCond

type PackageCond int

Package condition

Jump to

Keyboard shortcuts

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