OSDN Git Service

Support signing target_files without a recovery.fstab.
authorJeff Davidson <jpd@google.com>
Thu, 27 Oct 2011 01:08:09 +0000 (18:08 -0700)
committerJeff Davidson <jpd@google.com>
Thu, 27 Oct 2011 01:16:13 +0000 (18:16 -0700)
Change-Id: I7d6f511c69d589bf035ac3eb7eeee4b0e0505faa

tools/releasetools/common.py

index 2cb5680..4957354 100644 (file)
@@ -151,7 +151,8 @@ def LoadRecoveryFSTab(zip):
   try:
     data = zip.read("RECOVERY/RAMDISK/etc/recovery.fstab")
   except KeyError:
-    raise ValueError("Could not find RECOVERY/RAMDISK/etc/recovery.fstab")
+    print "Warning: could not find RECOVERY/RAMDISK/etc/recovery.fstab in %s." % zip
+    data = ""
 
   d = {}
   for line in data.split("\n"):