app/lib/actions/katello/repository/clone_yum_content.rb in katello-2.2.2 vs app/lib/actions/katello/repository/clone_yum_content.rb in katello-2.4.0.rc1
- old
+ new
@@ -1,17 +1,5 @@
-#
-# Copyright 2014 Red Hat, Inc.
-#
-# This software is licensed to you under the GNU General Public
-# License as published by the Free Software Foundation; either version
-# 2 of the License (GPLv2) or (at your option) any later version.
-# There is NO WARRANTY for this software, express or implied,
-# including the implied warranties of MERCHANTABILITY,
-# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
-# have received a copy of GPLv2 along with this software; if not, see
-# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
-
module Actions
module Katello
module Repository
class CloneYumContent < Actions::Base
# rubocop:disable MethodLength
@@ -51,9 +39,10 @@
plan_copy(Pulp::Repository::CopyDistribution, source_repo, target_repo)
if purge_empty_units
plan_action(Katello::Repository::IndexErrata, target_repo)
plan_action(Pulp::Repository::PurgeEmptyErrata, :pulp_id => target_repo.pulp_id)
+ plan_action(Katello::Repository::IndexPackageGroups, target_repo)
plan_action(Pulp::Repository::PurgeEmptyPackageGroups, :pulp_id => target_repo.pulp_id)
end
plan_action(Katello::Repository::MetadataGenerate, target_repo, filters.empty? ? source_repo : nil) if generate_metadata
plan_action(ElasticSearch::Repository::IndexContent, id: target_repo.id) if index_content