We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b02c92 commit 0a84b1dCopy full SHA for 0a84b1d
lib/pgpm/rpm/spec.rb
@@ -9,10 +9,15 @@ class Spec
9
attr_reader :package, :release, :postgres_version, :postgres_distribution
10
11
def initialize(package)
12
+ @postgres_distribution = Pgpm::Postgres::Distribution.in_scope
13
@package = package
14
@release = 1
15
- @postgres_distribution = Pgpm::Postgres::Distribution.in_scope
16
+ # Needed in order to return correct dependencies for the selected
17
+ # version of postgres and selected OS.
18
+ @package = package
19
+ @package.os = "redhat"
20
+ @package.postgres_major_version = @postgres_distribution.version.split(".")[0]
21
end
22
23
def versionless
0 commit comments