mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
add GetAddonDir to context
This commit is contained in:
@@ -527,6 +527,11 @@ func (context *AptlyContext) GetVerifier() pgp.Verifier {
|
|||||||
return pgp.NewGpgVerifier(context.getGPGFinder())
|
return pgp.NewGpgVerifier(context.getGPGFinder())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AddonPath builds the local addon folder
|
||||||
|
func (context *AptlyContext) AddonPath() string {
|
||||||
|
return filepath.Join(context.config().RootDir, "addon")
|
||||||
|
}
|
||||||
|
|
||||||
// UpdateFlags sets internal copy of flags in the context
|
// UpdateFlags sets internal copy of flags in the context
|
||||||
func (context *AptlyContext) UpdateFlags(flags *flag.FlagSet) {
|
func (context *AptlyContext) UpdateFlags(flags *flag.FlagSet) {
|
||||||
context.Lock()
|
context.Lock()
|
||||||
|
|||||||
Reference in New Issue
Block a user