mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Refresh package managers after setup (#4397)
* Refresh package managers after setup * Fix default plugins/scrapers paths
This commit is contained in:
@@ -3,6 +3,7 @@ package api
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
@@ -26,6 +27,10 @@ func getPackageManager(typeArg PackageType) (*pkg.Manager, error) {
|
||||
return nil, ErrInvalidPackageType
|
||||
}
|
||||
|
||||
if pm == nil {
|
||||
return nil, fmt.Errorf("%s package manager not initialized", typeArg)
|
||||
}
|
||||
|
||||
return pm, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user