build: add a new path variable.
This commit is contained in:
parent
0b7f355269
commit
8cfc6b4574
2 changed files with 4 additions and 2 deletions
|
|
@ -30,6 +30,7 @@ var (
|
|||
Full bool
|
||||
Complain bool
|
||||
Distribution string
|
||||
DistDir *paths.Path
|
||||
Root *paths.Path
|
||||
RootApparmord *paths.Path
|
||||
|
||||
|
|
@ -44,6 +45,7 @@ type prepareFunc func() error
|
|||
type buildFunc func(string) string
|
||||
|
||||
func init() {
|
||||
DistDir = paths.New("dists")
|
||||
Root = paths.New(".build")
|
||||
RootApparmord = Root.Join("apparmor.d")
|
||||
Distribution, _ = util.GetSupportedDistribution()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue