Documentation ¶
Index ¶
- func CheckPkgSystemError(lock bool) error
- func DownloadPackages(packages []string, environ map[string]string, options map[string]string) (string, error)
- func GenOnlineUpdatePackagesByEmulateInstall(packages []string, option []string) (map[string]system.PackageInfo, map[string]system.PackageInfo, error)
- func ListDistUpgradePackages(sourcePath string, option []string) ([]string, error)
- func ListInstallPackages(packages []string) ([]string, error)
- func NewSystem(nonUnknownList []string, otherList []string) system.System
- func OptionToArgs(options map[string]string) []string
- func WaitDpkgLockRelease()
- type APTSystem
- func (p *APTSystem) Abort(jobId string) error
- func (p *APTSystem) AbortWithFailed(jobId string) error
- func (p *APTSystem) AddCMD(cmd *system.Command)
- func (p *APTSystem) AttachIndicator(f system.Indicator)
- func (p *APTSystem) CheckSystem(jobId string, checkType string, environ map[string]string, ...) error
- func (p *APTSystem) Clean(jobId string) error
- func (p *APTSystem) DistUpgrade(jobId string, packages []string, environ map[string]string, ...) error
- func (p *APTSystem) DownloadPackages(jobId string, packages []string, environ map[string]string, ...) error
- func (p *APTSystem) DownloadSource(jobId string, packages []string, environ map[string]string, ...) error
- func (p *APTSystem) FindCMD(id string) *system.Command
- func (p *APTSystem) FixError(jobId string, errType string, environ map[string]string, ...) error
- func (p *APTSystem) Install(jobId string, packages []string, environ map[string]string, ...) error
- func (p *APTSystem) Remove(jobId string, packages []string, environ map[string]string) error
- func (p *APTSystem) RemoveCMD(id string)
- func (p *APTSystem) UpdateSource(jobId string, environ map[string]string, args map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPkgSystemError ¶
func DownloadPackages ¶
func GenOnlineUpdatePackagesByEmulateInstall ¶
func GenOnlineUpdatePackagesByEmulateInstall(packages []string, option []string) (map[string]system.PackageInfo, map[string]system.PackageInfo, error)
GenOnlineUpdatePackagesByEmulateInstall option 需要带上仓库参数 // TODO 存在正则范围不够的情况,导致风险,需要替换成ListDistUpgradePackages
func ListDistUpgradePackages ¶
ListDistUpgradePackages return the pkgs from apt dist-upgrade NOTE: the result strim the arch suffix
func ListInstallPackages ¶
func OptionToArgs ¶
func WaitDpkgLockRelease ¶
func WaitDpkgLockRelease()
Types ¶
type APTSystem ¶
func (*APTSystem) AbortWithFailed ¶
func (*APTSystem) AttachIndicator ¶
func (*APTSystem) CheckSystem ¶
func (*APTSystem) DistUpgrade ¶
func (*APTSystem) DownloadPackages ¶
func (*APTSystem) DownloadSource ¶
Click to show internal directories.
Click to hide internal directories.