func (m *Manifest) HasVersion(context *updateutil.InstanceContext, packageName string, version string) bool {
	for _, p := range m.Packages {
		if p.Name == packageName {
			for _, f := range p.Files {
				if f.Name == context.FileName(packageName) {
					for _, v := range f.AvailableVersions {
						if v.Version == version || version == updateutil.PipelineTestVersion {
							return true
						}
					}
				}
			}
		}
	}

	return false
}
// HasVersion returns if manifest file has particular version for package
HasVersion returns if manifest file has particular version for package
// HasVersion returns if manifest file has particular version for package
func (m *Manifest) HasVersion(context *updateutil.InstanceContext, packageName string, version string) bool {
	for _, p := range m.Packages {
		if p.Name == packageName {
			for _, f := range p.Files {
				if f.Name == context.FileName(packageName) {
					for _, v := range f.AvailableVersions {
						if v.Version == version || version == updateutil.PipelineTestVersion {
							return true
						}
					}
				}
			}
		}
	}
	return false
}
func ( m * Manifest ) HasVersion ( context * updateutil . InstanceContext , packageName string , version string ) bool { for _ , p := range m . Packages { if p . Name == packageName { for _ , f := range p . Files { if f . Name == context . FileName ( packageName ) { for _ , v := range f . AvailableVersions { if v . Version == version || version == updateutil . PipelineTestVersion { return true } } } } } } return false }
HasVersion returns if manifest file has particular version for package
HasVersion returns if manifest file has particular version for package