summaryrefslogtreecommitdiff
path: root/wit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 09:39:44 -0500
committerJeff Carr <[email protected]>2025-10-07 09:39:44 -0500
commitfbc6477ec86c3968f983593ac1ce1825b33fea80 (patch)
tree2b74d0b6ac1170ca941dcc9ab61b0c02302dae1e /wit.go
parentd110888f81e357010b71a0a0286ba298fcd452c5 (diff)
builds and runs again
Diffstat (limited to 'wit.go')
-rw-r--r--wit.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/wit.go b/wit.go
index 2b929ad..cd55f22 100644
--- a/wit.go
+++ b/wit.go
@@ -5,6 +5,12 @@ import (
)
func (m *Machine) IsInstalled(name string) bool {
+ if m == nil {
+ panic("m == nil in zoopb")
+ }
+ if m.Packages == nil {
+ panic("m.Packages nil in zoopb")
+ }
for p := range m.Packages.IterByName() {
if name == p.Name {
// log.Info("package installed:", p.Name, p.Version, p.PkgName)