debian

package
v0.7.24 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MPL-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
y or Y : Canonical URL