From 033fbe28c273fc5a99e0738d84c79ee7040b1fa0 Mon Sep 17 00:00:00 2001 From: Jeff Davidson Date: Wed, 26 Oct 2011 18:08:09 -0700 Subject: [PATCH] Support signing target_files without a recovery.fstab. Change-Id: I7d6f511c69d589bf035ac3eb7eeee4b0e0505faa --- tools/releasetools/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 2cb5680ed9..4957354af6 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -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"):