portage

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLocale

func CheckLocale(mRef *map[string]string) error

func EnvUpdate

func EnvUpdate(rootdir string, opts *EnvUpdateOpts) error

func EtcUpdate

func EtcUpdate(rootdir string, opts *EtcUpdateOpts) error

func ParseEnvFile

func ParseEnvFile(file string) (map[string]string, error)

func ParseEnvd

func ParseEnvd(rootdir string, opts *EnvUpdateOpts) (map[string]string, error)

Parse /etc/env.d of the selected rootdir to generate the list of env variables used to generate /etc/pofile.env, csh.env, ld.so.conf, prelink.conf.

Types

type EnvUpdateOpts

type EnvUpdateOpts struct {
	EnvSpaceSeparated []string
	EnvColonSeparated []string
	EnvSingleValue    []string
	WithLdConfig      bool
	PrelinkCapable    bool
	DryRun            bool
	Debug             bool
	Systemd           bool
	Csh               bool
}

func NewEnvUpdateOpts

func NewEnvUpdateOpts() *EnvUpdateOpts

type EtcUpdateConf

type EtcUpdateConf struct {
	// mode - true for text, false for menu (support incomplete)
	ModeText bool `yaml:"mode" json:"mode"`
	// Whether to clear the term prior to each display or not
	ClearTerm bool `yaml:"clear_term" json:"mode"`
	// Whether trivial/comment changes should be automerged
	EuAutomerge bool `yaml:"eu_automerge" json:"eu_automerge"`
	// arguments used whenever rm is called
	RmOpts string `yaml:"rm_opts" json:"rm_opts"`
	// arguments used whenever mv is called
	MvOpts string `yaml:"mv_opts" json:"mv_opts"`
	// arguments used whenever cp is called
	CpOpts string `yaml:"cp_opts" json:"cp_opts"`
	// set the pager for use with diff commands (this will
	// cause the PAGER environment variable to be ignored)
	Pager string `yaml:"pager,omitempty" json:"pager,omitempty"`
	// To enable when is used an editor as diff commands
	UsingEditor bool `yaml:"using_editor,omitempty" json:"using_editor,omitempty"`
	// Command to use for diff
	DiffCommand string `yaml:"diff_command" json:"diff_command"`
	// Command to use for merging files
	MergeCommand string `yaml:"merge_command" json:"merge_command"`
}

func NewEtcUpdateConf

func NewEtcUpdateConf() *EtcUpdateConf

func NewEtcUpdateConfFromFile

func NewEtcUpdateConfFromFile(f string) *EtcUpdateConf

func (*EtcUpdateConf) String

func (c *EtcUpdateConf) String() string

type EtcUpdateOpts

type EtcUpdateOpts struct {
	Quiet        bool
	AutomergeAll bool
	Paths        []string
	MaskPaths    []string
}

func NewEtcUpdateOpts

func NewEtcUpdateOpts() *EtcUpdateOpts

type EtcUpdateTask

type EtcUpdateTask struct {
	Rootdir  string
	Opts     *EtcUpdateOpts
	Conf     *EtcUpdateConf
	FilesMap map[string][]string

	AutomergeAll bool
	DiscardAll   bool
}

func (*EtcUpdateTask) DelFileConfig

func (task *EtcUpdateTask) DelFileConfig(f, cfg string)

Jump to

Keyboard shortcuts

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