// UCCheck runs update content checks against manifests and their related file
// and pack contents
UCCheck runs update content checks against manifests and their related file
and pack contents
// UCCheck runs update content checks against manifests and their related file // and pack contents
func UCCheck(version uint, recursive bool) (*diva.Results, error) {
	r := diva.NewSuite("updatecontent", "check update content for release")
	u := diva.UInfo{
		Ver:      fmt.Sprint(version),
		URL:      conf.UpstreamURL,
		CacheLoc: conf.Paths.CacheLocation,
	}
	if !recursive {
		u.MinVer = version
	}
	err := diva.FetchUpdate(u)
	if err != nil {
		return r, err
	}
	err = diva.FetchUpdateFiles(u)
	if err != nil {
		return r, err
	}
	r.Header(0)
	err = updatecontent.CheckManifestHashes(r, conf, version, u.MinVer)
	if err != nil {
		return r, err
	}
	err = updatecontent.CheckFileHashes(r, conf, version, u.MinVer)
	if err != nil {
		return r, err
	}
	err = updatecontent.CheckPacks(r, conf, version, u.MinVer, true)
	if err != nil {
		return r, err
	}
	err = updatecontent.CheckPacks(r, conf, version, u.MinVer, false)
	if err != nil {
		return r, err
	}
	return r, err
}
func UCCheck ( version uint , recursive bool ) ( * diva . Results , error ) { r := diva . NewSuite ( " " , " " ) u := diva . UInfo { Ver : fmt . Sprint ( version ) , URL : conf . UpstreamURL , CacheLoc : conf . Paths . CacheLocation , } if ! recursive { u . MinVer = version } err := diva . FetchUpdate ( u ) if err != nil { return r , err } err = diva . FetchUpdateFiles ( u ) if err != nil { return r , err } r . Header ( 0 ) err = updatecontent . CheckManifestHashes ( r , conf , version , u . MinVer ) if err != nil { return r , err } err = updatecontent . CheckFileHashes ( r , conf , version , u . MinVer ) if err != nil { return r , err } err = updatecontent . CheckPacks ( r , conf , version , u . MinVer , true ) if err != nil { return r , err } err = updatecontent . CheckPacks ( r , conf , version , u . MinVer , false ) if err != nil { return r , err } return r , err }
UCCheck runs update content checks against manifests and their related file
and pack contents
UCCheck runs update content checks against manifests and their related file and pack contents