// removeConfiguredPackages removes packages configured during init phase
removeConfiguredPackages removes packages configured during init phase
// removeConfiguredPackages removes packages configured during init phase
func (p *updatePhaseInit) removeConfiguredPackages() error {
	p.Info("Removing configured packages.")
	return pack.ForeachPackageInRepo(p.Packages, p.Operation.SiteDomain,
		func(e pack.PackageEnvelope) error {
			if e.HasLabel(pack.OperationIDLabel, p.Operation.ID) {
				p.Infof("Removing package %q.", e.Locator)
				return p.Packages.DeletePackage(e.Locator)
			}
			return nil
		})
}
func ( p * updatePhaseInit ) removeConfiguredPackages ( ) error { p . Info ( " " ) return pack . ForeachPackageInRepo ( p . Packages , p . Operation . SiteDomain , func ( e pack . PackageEnvelope ) error { if e . HasLabel ( pack . OperationIDLabel , p . Operation . ID ) { p . Infof ( " " , e . Locator ) return p . Packages . DeletePackage ( e . Locator ) } return nil } ) }
removeConfiguredPackages removes packages configured during init phase
removeConfiguredPackages removes packages configured during init phase
// all packages created during this operation were marked // with corresponding operation-id label