Skip to content

Commit

Permalink
Merge pull request #197 from KanoComputing/bluez-blues
Browse files Browse the repository at this point in the history
Bluez: Move bluez preinstall to happen with every update
  • Loading branch information
tombettany authored Jul 21, 2016
2 parents d42de87 + 20962ae commit eeb0271
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions kano_updater/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ def run(self):
update_failed(msg)
raise Exception(msg)

self._finalise()

def _finalise(self):
pass


class PreUpdate(Scenarios):
_type = "pre"
Expand Down Expand Up @@ -225,7 +230,7 @@ def beta_220_to_beta_230(self):
run_cmd_log('apt-get -y autoremove')

def beta_230_to_beta_240(self):
run_cmd_log('apt-get install bluez')
pass

def beta_240_to_beta_300(self):
pass
Expand All @@ -242,6 +247,11 @@ def beta_320_to_beta_330(self):
def beta_330_to_beta_340(self):
pass

def _finalise(self):
# When bluez is installed through a dependency it fails to configure
# Get around this by installing it first
run_cmd_log('apt-get -y install bluez')

# Not used at the moment: dev.kano.me > repo.kano.me
def _migrate_repo_url(self):
migrate_repository('/etc/apt/sources.list.d/kano.list',
Expand Down Expand Up @@ -570,4 +580,6 @@ def disable_audio_dither():
disable_audio_dither()

def beta_330_to_beta_340(self):
pass
# fix locale database if it was
# corrupted by the NOOBS file hole problem
run_cmd_log('locale-gen')

0 comments on commit eeb0271

Please sign in to comment.