|
@@ -2,6 +2,7 @@ package main
|
|
|
|
|
|
import (
|
|
import (
|
|
"context"
|
|
"context"
|
|
|
|
+ "errors"
|
|
"fmt"
|
|
"fmt"
|
|
"os"
|
|
"os"
|
|
"path/filepath"
|
|
"path/filepath"
|
|
@@ -15,7 +16,6 @@ import (
|
|
|
|
|
|
"github.com/Jguer/aur/metadata"
|
|
"github.com/Jguer/aur/metadata"
|
|
"github.com/leonelquinteros/gotext"
|
|
"github.com/leonelquinteros/gotext"
|
|
- "github.com/pkg/errors"
|
|
|
|
)
|
|
)
|
|
|
|
|
|
func handleCmd(logger *text.Logger) error {
|
|
func handleCmd(logger *text.Logger) error {
|
|
@@ -43,7 +43,7 @@ func handleCmd(logger *text.Logger) error {
|
|
metadata.WithCacheFilePath(
|
|
metadata.WithCacheFilePath(
|
|
filepath.Join(cfg.BuildDir, "aur.json")))
|
|
filepath.Join(cfg.BuildDir, "aur.json")))
|
|
if err != nil {
|
|
if err != nil {
|
|
- return errors.Wrap(err, gotext.Get("failed to retrieve aur Cache"))
|
|
|
|
|
|
+ return fmt.Errorf("%s: %w", gotext.Get("failed to retrieve aur Cache"), err)
|
|
}
|
|
}
|
|
|
|
|
|
grapher := dep.NewGrapher(dbExecutor, aurCache, true, settings.NoConfirm,
|
|
grapher := dep.NewGrapher(dbExecutor, aurCache, true, settings.NoConfirm,
|