Skip to content

Commit

Permalink
Allow versions like 3.5.0.1 for extension debian packages (GoogleClou…
Browse files Browse the repository at this point in the history
…dPlatform#397)

* Allow versions like 3.5.0.1 for extension debian packages

* Escape dots in the regex

* Allow any additional string in the version part
  • Loading branch information
Takashi Matsuo authored Dec 11, 2017
1 parent 723abd3 commit 132c4ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deb-package-builder/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ download_from_pecl()
with_retry "pecl download ${PECL_PACKAGE_NAME}" 6
# determine the downloaded version
EXT_VERSION=$(ls ${PACKAGE_SHORT_NAME}-*.tgz | \
sed "s/${PACKAGE_SHORT_NAME}-\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)\.tgz/\1/")
sed -E "s/${PACKAGE_SHORT_NAME}-([0-9]+\.[0-9]+(\.[0-9]+)+.*)\.tgz/\1/")
else
with_retry "pecl download ${PECL_PACKAGE_NAME}-${2}" 6
EXT_VERSION="${2}"
Expand Down
Empty file added functions.sh
Empty file.

0 comments on commit 132c4ea

Please sign in to comment.