diff options
Diffstat (limited to 'app/services/packages/maven/metadata')
-rw-r--r-- | app/services/packages/maven/metadata/sync_service.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/app/services/packages/maven/metadata/sync_service.rb b/app/services/packages/maven/metadata/sync_service.rb index 48e157d4930..4f35db36fb0 100644 --- a/app/services/packages/maven/metadata/sync_service.rb +++ b/app/services/packages/maven/metadata/sync_service.rb @@ -93,10 +93,15 @@ module Packages def metadata_package_file_for(package) return unless package - package.package_files - .with_file_name(Metadata.filename) - .recent - .first + package_files = if Feature.enabled?(:packages_installable_package_files, default_enabled: :yaml) + package.installable_package_files + else + package.package_files + end + + package_files.with_file_name(Metadata.filename) + .recent + .first end def versionless_package_named(name) |