Merge lp:~bzoltan/phablet-tools/different_nmcli_for_vivid into lp:phablet-tools
| Status: | Merged |
|---|---|
| Approved by: | Oliver Grawert on 2015-02-17 |
| Approved revision: | 338 |
| Merged at revision: | 334 |
| Proposed branch: | lp:~bzoltan/phablet-tools/different_nmcli_for_vivid |
| Merge into: | lp:phablet-tools |
| Diff against target: |
22 lines (+5/-6) 1 file modified
phablet-network (+5/-6) |
| To merge this branch: | bzr merge lp:~bzoltan/phablet-tools/different_nmcli_for_vivid |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brendan Donegan (community) | Approve on 2015-02-10 | ||
| Oliver Grawert | Approve on 2015-02-10 | ||
| Timo Jyrinki | 2015-02-02 | Approve on 2015-02-03 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-02-03 | |
|
Review via email:
|
|||
Commit Message
Use different nmcli command on 15.04 than on 14.10 or 14.04
Description of the Change
Use different nmcli command on 15.04 than on 14.10 or 14.04
| Timo Jyrinki (timo-jyrinki) wrote : | # |
Tested the new nmcli command on vivid and it seems to work fine. Much appreciated!
| Brendan Donegan (brendan-donegan) wrote : | # |
I would do 'wireless_
Neither of these changes are essential, just suggestions
| Brendan Donegan (brendan-donegan) wrote : | # |
Actually now I think about it, there is one thing wrong here - the approach to choosing the command. Really the lsb_release output isn't what's relevant - it's the nmcli version. Check with cyphermox from which version the command changed and use the output of nmcli -v or dpkg -l to check the version.
| Brendan Donegan (brendan-donegan) wrote : | # |
> Actually now I think about it, there is one thing wrong here - the approach to
> choosing the command. Really the lsb_release output isn't what's relevant -
> it's the nmcli version. Check with cyphermox from which version the command
> changed and use the output of nmcli -v or dpkg -l to check the version.
e.g. if the lowest version with the change is 0.9.10 do:
dpkg --compare-versions $installed_version '>=' 0.9.10
| Oliver Grawert (ogra) wrote : | # |
there is a bunch of things wrong that needs some cleanup
you should only switch a variable based on the nmcli --version output:
ver=$(nmcli --version|sed 's/^.* //')
if $(dpkg --compare-versions ... )...
then keep the commands generic and just replace some version contents or command options that way ypur if/then becomes a lot cleaner and boils down to about 5 lines:
network_
wireless_
| Zoltan Balogh (bzoltan) wrote : | # |
In utopic the nmcli is on 0.9.8.8 and in vivid is on 0.9.10.0
| Oliver Grawert (ogra) wrote : | # |
http://
| Oliver Grawert (ogra) wrote : | # |
and with brendans change (which i missed above):
| Leo Arias (elopio) wrote : | # |
Why is this work in progress? seems everybody likes it, and we need it for the sanity suite automation. Can you please land it?

PASSED: Continuous integration, rev:336 jenkins. qa.ubuntu. com/job/ phablet- tools-ci/ 434/ jenkins. qa.ubuntu. com/job/ phablet- tools-vivid- amd64-ci/ 11 jenkins. qa.ubuntu. com/job/ phablet- tools-vivid- armhf-ci/ 11 jenkins. qa.ubuntu. com/job/ phablet- tools-vivid- i386-ci/ 11
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/phablet- tools-ci/ 434/rebuild
http://