mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +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())
|
||||
}
|
||||
|
||||
// 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
|
||||
func (context *AptlyContext) UpdateFlags(flags *flag.FlagSet) {
|
||||
context.Lock()
|
||||
|
||||
Reference in New Issue
Block a user