Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #476 from lissyx/bug1212845
Browse files Browse the repository at this point in the history
Bug 1212845 - Fix build without FOTA_DEVICE_DATA_FILES r=gsvelto
  • Loading branch information
lissyx committed Oct 8, 2015
2 parents 858bee2 + 43b550e commit da17fd0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tools/update-tools/update_tools.py
Expand Up @@ -1072,10 +1072,14 @@ def CleanDeviceFiles(self):
# Device-specific files that we need to cleanup
# Should be specified as a space-separated list of files in
# the env variable FOTA_DEVICE_DATA_FILES
deviceCleanup = filter(lambda x: len(x) > 0, os.environ.get("FOTA_DEVICE_DATA_FILES").split(" "))
if not os.environ.has_key("FOTA_DEVICE_DATA_FILES"):
return

files = os.environ.get("FOTA_DEVICE_DATA_FILES")
if len(files) < 1:
return

if len(deviceCleanup) < 1:
return
deviceCleanup = filter(lambda x: len(x) > 0, files.split(" "))

# sdcard will already be mounted anyway
self.AssertMountIfNeeded("/data")
Expand Down

0 comments on commit da17fd0

Please sign in to comment.