File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class Spec
12
12
def initialize ( package )
13
13
@postgres_distribution = Pgpm ::Postgres ::Distribution . in_scope
14
14
@package = package
15
- @package . postgres_major_version = @postgres_distribution . version . split ( "." ) [ 0 ]
15
+ @package . postgres_major_version = @postgres_distribution . major_version
16
16
@package . os = "debian"
17
17
@release = 1
18
18
end
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def initialize(package)
17
17
# version of postgres and selected OS.
18
18
@package = package
19
19
@package . os = "redhat"
20
- @package . postgres_major_version = @postgres_distribution . version . split ( "." ) [ 0 ]
20
+ @package . postgres_major_version = @postgres_distribution . major_version
21
21
end
22
22
23
23
def versionless
You can’t perform that action at this time.
0 commit comments