Version: v1.1.10 Latest Latest

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 8 Imported by: 1




This section is empty.


This section is empty.


This section is empty.


type Cmd

type Cmd struct {
	Directory string
	Upload    bool
	DebCmd    func(...string) (string, error)

func New

func New() Cmd

New returns a new Cmd that implements "apt-cache" to find dependency information.

func (Cmd) Dependencies

func (d Cmd) Dependencies(target string) (graph.Deps, error)

Dependencies returns a dependency graph by analyzing a debian package.Dependencies. Notes:

(A "valid dependency" is one that has a valid path in "d.Directory+target"). Many types of
packages are found when running d.DebCmd and it is important to determine which ones
are used by the system. This is the reason we debug errors when a tarball upload fails.

Analysis steps are as follows:

1. Find all transitive dependencies for the target package.
2. Upload all valid dependencies and retrieve locator information.
3. Loop through all valid dependencies and find their direct dependencies using d.DebCmd
4. Construct a dependency graph with the direct dependency information.Dependencies

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL