mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
add GetAddonDir to context
This commit is contained in:
1 parent
31ccce1343
commit
bc090e1dce
1 file changed
+5
@@ -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