Skip to content

Commit ce11102

Browse files
committed
♻️ Synced dbin 📦 <-- findURL.go: remove leftover println ⌚
1 parent f7b3521 commit ce11102

File tree

8 files changed

+364
-193
lines changed

8 files changed

+364
-193
lines changed

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func setDefaultValues(config *config) {
319319

320320
config.Repositories = []repository{
321321
{
322-
URL: fmt.Sprintf("https://raw.githubusercontent.com/xplshn/dbin-metadata/refs/heads/master/misc/cmd/%.1f/%s%s", version, arch, ".lite.cbor.zst"),
322+
URL: fmt.Sprintf("https://d.xplshn.com.ar/misc/cmd/%.1f/%s%s", version, arch, ".lite.cbor.zst"),
323323
PubKeys: map[string]string{
324324
"bincache": "https://meta.pkgforge.dev/bincache/minisign.pub",
325325
"pkgcache": "https://meta.pkgforge.dev/pkgcache/minisign.pub",

fetch.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"github.com/hedzr/progressbar"
1919
"github.com/jedisct1/go-minisign"
2020
"github.com/pkg/xattr"
21-
"github.com/xplshn/dbin/internal/util"
2221
"github.com/zeebo/blake3"
2322
"github.com/zeebo/errs"
2423
)
@@ -543,7 +542,7 @@ func cleanInstallCache(installDir string) error {
543542
}
544543
var atime time.Time
545544
if sysInfo, ok := fileInfo.Sys().(*syscall.Stat_t); ok {
546-
atime = util.ATime(sysInfo)
545+
atime = ATime(sysInfo)
547546
} else {
548547
if verbosityLevel >= extraVerbose {
549548
fmt.Fprintf(os.Stderr, "Warning: ATime not supported for %s, skipping cleanup\n", filePath)

findURL.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ func findMatchingBins(bEntry binaryEntry, uRepoIndex []binaryEntry) []binaryEntr
4343
}
4444
// name
4545
} else if bEntry.PkgID == "" && bEntry.Version == "" && bEntry.Repository.Name == "" {
46-
fmt.Println("name", parseBinaryEntry(bEntry, true))
4746
matches = true
4847
}
4948
}

main.go

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ func main() {
4949
},
5050
},
5151
Before: func(ctx context.Context, c *cli.Command) (context.Context, error) {
52-
switch {
53-
case c.Bool("extra-silent"):
54-
verbosityLevel = extraSilent
55-
case c.Bool("silent"):
56-
verbosityLevel = silentVerbosityWithErrors
57-
case c.Bool("verbose"):
58-
verbosityLevel = extraVerbose
59-
}
60-
return nil, nil
61-
},
52+
switch {
53+
case c.Bool("extra-silent"):
54+
verbosityLevel = extraSilent
55+
case c.Bool("silent"):
56+
verbosityLevel = silentVerbosityWithErrors
57+
case c.Bool("verbose"):
58+
verbosityLevel = extraVerbose
59+
}
60+
return nil, nil
61+
},
6262
Commands: []*cli.Command{
6363
installCommand(),
6464
removeCommand(),
@@ -72,8 +72,7 @@ func main() {
7272
EnableShellCompletion: true,
7373
}
7474

75-
err := app.Run(context.Background(), os.Args)
76-
if err != nil {
75+
if err := app.Run(context.Background(), os.Args); err != nil {
7776
fmt.Fprintf(os.Stderr, "%v\n", err)
7877
os.Exit(1)
7978
}

0 commit comments

Comments
 (0)