run update.sh, install netifaces

This commit is contained in:
j 2016-03-23 12:39:11 +01:00
commit 717a291e19
258 changed files with 71187 additions and 1047 deletions

View file

@ -135,9 +135,12 @@ class Git(VersionControl):
self.update_submodules(dest)
def get_url(self, location):
url = self.run_command(
['config', 'remote.origin.url'],
"""Return URL of the first remote encountered."""
remotes = self.run_command(
['config', '--get-regexp', 'remote\..*\.url'],
show_stdout=False, cwd=location)
first_remote = remotes.splitlines()[0]
url = first_remote.split(' ')[1]
return url.strip()
def get_revision(self, location):