Skip to content
Browse files

Update the package-source function to use alternative repos for any P…

…ostgreSQL version that starts with '9.', to support additional versions in the 9 series.
  • Loading branch information...
1 parent fd3e747 commit 47f59f8db64b426553c35a0e726cc860bb8d7284 @davidsantiago davidsantiago committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/pallet/crate/postgres.clj
View
8 src/pallet/crate/postgres.clj
@@ -117,10 +117,10 @@
[session version]
(let [os-family (session/os-family session)]
(cond
- (and (= :debian os-family) (= "9.0" version)) :debian-backports
- (and (= :ubuntu os-family) (= "9.0" version)) :martin-pitt-backports
- (and (= :centos os-family) (= "9.0" version)) :pgdg
- (and (= :fedora os-family) (= "9.0" version)) :pgdg
+ (and (= :debian os-family) (.startsWith version "9.0")) :debian-backports
+ (and (= :ubuntu os-family) (.startsWith version "9.0")) :martin-pitt-backports
+ (and (= :centos os-family) (.startsWith version "9.0")) :pgdg
+ (and (= :fedora os-family) (.startsWith version "9.0")) :pgdg
:else :native)))
(def pgdg-repo-versions

0 comments on commit 47f59f8

Please sign in to comment.
Something went wrong with that request. Please try again.