Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl as failover of wget for connectors #146

Closed
ltoussaint opened this issue Sep 4, 2014 · 8 comments
Closed

Curl as failover of wget for connectors #146

ltoussaint opened this issue Sep 4, 2014 · 8 comments

Comments

@ltoussaint
Copy link
Member

OSX does not have wget installed by default.
Allow connectors to use curl as failover.

@geoffroy-aubry
Copy link
Member

Don't forget to mention new Gitlab connector in README/CHANGELOG because no feature was dedicated.

@geoffroy-aubry
Copy link
Member

Do python version of gitlab connector is working?

@ltoussaint
Copy link
Member Author

This connector only work with PHP.
With python it will return an empty string.

@geoffroy-aubry
Copy link
Member

OK. Hmm… so why give priority to pyhton language in feature_subject_gitlab.sh, line 49?
It wouldn't be better if python version doesn't work to simply remove it and throw an error?

@ltoussaint
Copy link
Member Author

The chosen language always was PHP if installed.
So the code with python was never call.

But to be compatible with the most OS, I did the python version.
So it should be ok now.

@geoffroy-aubry
Copy link
Member

"The chosen language always was PHP if installed.": sorry, but the code below seems say the opposite. Currently, in each connector, the chosen language is PHP if and only if Python is not installed. ^^

But if your Python version is working, it's fine :-)

# Python or PHP ?
language='?'
which python 1>/dev/null 2>&1
if [ $? -eq 0 ]; then
    language='python'
else
    which php 1>/dev/null 2>&1
    if [ $? -eq 0 ]; then
        language='php'
    fi
fi

@ltoussaint
Copy link
Member Author

Yes, this code was added when I did the python version ;-)

@geoffroy-aubry
Copy link
Member

OK, thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants