Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/packages/debian/group_distribution.rb')
-rw-r--r--app/models/packages/debian/group_distribution.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/packages/debian/group_distribution.rb b/app/models/packages/debian/group_distribution.rb
index eea7acacc96..50c1ec9f163 100644
--- a/app/models/packages/debian/group_distribution.rb
+++ b/app/models/packages/debian/group_distribution.rb
@@ -6,4 +6,14 @@ class Packages::Debian::GroupDistribution < ApplicationRecord
end
include Packages::Debian::Distribution
+
+ def packages
+ Packages::Package
+ .for_projects(group.all_projects.public_only)
+ .with_debian_codename(codename)
+ end
+
+ def package_files
+ ::Packages::PackageFile.for_package_ids(packages.select(:id))
+ end
end