We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a84b1d commit d39f047Copy full SHA for d39f047
lib/pgpm/deb/spec.rb
@@ -12,7 +12,7 @@ class Spec
12
def initialize(package)
13
@postgres_distribution = Pgpm::Postgres::Distribution.in_scope
14
@package = package
15
- @package.postgres_major_version = @postgres_distribution.version.split(".")[0]
+ @package.postgres_major_version = @postgres_distribution.major_version
16
@package.os = "debian"
17
@release = 1
18
end
lib/pgpm/rpm/spec.rb
@@ -17,7 +17,7 @@ def initialize(package)
# version of postgres and selected OS.
19
@package.os = "redhat"
20
21
22
23
def versionless
0 commit comments