minor autogenpb api change
This commit is contained in:
parent
b7368c92fd
commit
6b3651edb7
10
apt.go
10
apt.go
|
@ -21,19 +21,15 @@ func initPackages() {
|
||||||
new1 := new(zoopb.Package)
|
new1 := new(zoopb.Package)
|
||||||
new1.Name = pkg
|
new1.Name = pkg
|
||||||
new1.Version = version
|
new1.Version = version
|
||||||
if me.packages.Append(new1) {
|
me.packages.Append(new1)
|
||||||
// log.Info("added", new1.Name, "ok")
|
|
||||||
} else {
|
|
||||||
log.Info("added", new1.Name, "failed")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info(me.hostname, "has distro", me.distro, "with", me.packages.Len(), "packages installed")
|
log.Info(me.hostname, "has distro", me.distro, "with", me.packages.Len(), "packages installed")
|
||||||
}
|
}
|
||||||
|
|
||||||
func addNew(name string, version string) bool {
|
func addNew(name string, version string) {
|
||||||
new1 := new(zoopb.Package)
|
new1 := new(zoopb.Package)
|
||||||
new1.Name = name
|
new1.Name = name
|
||||||
new1.Version = version
|
new1.Version = version
|
||||||
return me.packages.Append(new1)
|
me.packages.Append(new1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue