Skip to content

Commit 1bab1ce

Browse files
committed
Merge branch 'develop'
2 parents 4e52985 + b85d795 commit 1bab1ce

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

travis/build_new_nightly

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ hubauth="Authorization: token ${GITHUB_TOKEN}"
2323
source pkgvars
2424

2525
# set default values for certain packaging variables
26-
hubproj="${hubproj:-${pkgname}}"
2726
nightlyref="${nightlyref:-master}"
2827
releasepg="${releasepg:-9.6,10}"
2928
nightlypg="${nightlypg:-${releasepg}}"
@@ -32,11 +31,13 @@ latestpg=$(echo "${nightlypg}" | tr ',' '\n' | sort -t. -k1,1n -k2,2n | tail -n1
3231
case "${PLATFORM_TYPE}" in
3332
debian|ubuntu)
3433
pkgflavor='deb'
34+
pkgname="${deb_pkgname:-${pkgname}}"
3535
pkgfull="postgresql-${latestpg}-${pkgname}"
3636
pkgarch="amd64"
3737
;;
3838
el|ol)
3939
pkgflavor='rpm'
40+
pkgname="${rpm_pkgname:-${pkgname}}"
4041
pkgfull="${pkgname}_${latestpg//./}"
4142
pkgarch="x86_64"
4243
;;
@@ -46,6 +47,8 @@ case "${PLATFORM_TYPE}" in
4647
;;
4748
esac
4849

50+
hubproj="${hubproj:-${pkgname}}"
51+
4952
pkgapiurl="https://packagecloud.io/api/v1/repos/citusdata/${PKG_REPOTYPE}-nightlies"
5053
pkgapiurl+="/package/${pkgflavor}/${TARGET_PLATFORM}/${pkgfull}/${pkgarch}/versions.json"
5154

travis/build_new_release

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ source pkgvars
2323

2424
# set default values for certain packaging variables
2525
declare pkglatest # to make shellcheck happy
26-
hubproj="${hubproj:-${pkgname}}"
2726
nightlyref="${nightlyref:-master}"
2827
releasepg="${releasepg:-9.6,10}"
2928
nightlypg="${nightlypg:-}"
@@ -33,6 +32,7 @@ versioning="${versioning:-simple}"
3332
case "${PLATFORM_TYPE}" in
3433
debian|ubuntu)
3534
pkgflavor='deb'
35+
pkgname="${deb_pkgname:-${pkgname}}"
3636
pkgfull="postgresql-${latestpg}-${pkgname}"
3737

3838
# add minor/major version to package name if using fancy versioning
@@ -46,6 +46,7 @@ case "${PLATFORM_TYPE}" in
4646
;;
4747
el|ol)
4848
pkgflavor='rpm'
49+
pkgname="${rpm_pkgname:-${pkgname}}"
4950

5051
# add minor/major version to package name if using fancy versioning
5152
if [ "${versioning}" == 'fancy' ]; then
@@ -64,6 +65,8 @@ case "${PLATFORM_TYPE}" in
6465
;;
6566
esac
6667

68+
hubproj="${hubproj:-${pkgname}}"
69+
6770
pkgapiurl="https://packagecloud.io/api/v1/repos/citusdata/${PKG_REPOTYPE}"
6871
pkgapiurl+="/package/${pkgflavor}/${TARGET_PLATFORM}/${pkgfull}/${pkgarch}/versions.json"
6972

0 commit comments

Comments
 (0)