Implement package resolve logic fixes

This commit is contained in:
AI Bot
2026-04-17 18:24:14 +02:00
committed by Riyyi
parent 536a8d5ccb
commit 4143a23c91
3 changed files with 48 additions and 49 deletions
+2 -2
View File
@@ -137,7 +137,7 @@ func categorizePackages(f *fetch.Fetcher, packages []string) (pacmanPkgs, aurPkg
for _, pkg := range packages {
info := resolved[pkg]
if info == nil || !info.Exists {
if info == nil || (!info.Exists && !info.InAUR) {
fmt.Fprintf(os.Stderr, "error: package not found: %s\n", pkg)
continue
}
@@ -335,7 +335,7 @@ func DryRun(packages []string) (*output.Result, error) {
var aurPkgs []string
for _, pkg := range packages {
info := resolved[pkg]
if info == nil || !info.Exists {
if info == nil || (!info.Exists && !info.InAUR) {
return nil, fmt.Errorf("package not found: %s", pkg)
}
if info.InAUR {