fix: fallback to package name for missing bases in archive

package zoom is being generated without base, leading to None there

Closes #155
This commit is contained in:
2026-01-22 16:34:17 +02:00
parent 4fa5d55317
commit 4e79cbf71a
2 changed files with 19 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ class Package(LazyLogging):
package = pacman.handle.load_pkg(str(path))
description = PackageDescription.from_package(package, path)
return cls(
base=package.base,
base=package.base or package.name,
version=package.version,
remote=RemoteSource(source=PackageSource.Archive),
packages={package.name: description},