Make the source line proper
This commit is contained in:
parent
238613b4c6
commit
db089965b3
1 changed files with 2 additions and 1 deletions
|
|
@ -37,8 +37,9 @@ if [ "x${PHP_VER}" = "x" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# There is prolly a better way to do this (getting the proper source pkg name):
|
||||||
PHP_SRC1="$(dpkg-query -W -f='${Version}' php5)"
|
PHP_SRC1="$(dpkg-query -W -f='${Version}' php5)"
|
||||||
PHP_SRC=${PHP_SRC1%*-*}
|
PHP_SRC=php5-${PHP_SRC1%*-*}
|
||||||
|
|
||||||
if [ ! -f "${PHP_SRC}" ]; then
|
if [ ! -f "${PHP_SRC}" ]; then
|
||||||
apt-get source php5
|
apt-get source php5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue