OSDN Git Service

Fix the wrong error message
authorTao Bao <tbao@google.com>
Wed, 3 Jun 2015 16:24:08 +0000 (09:24 -0700)
committerTao Bao <tbao@google.com>
Wed, 3 Jun 2015 16:25:10 +0000 (09:25 -0700)
apply_patch_space() checks the free space on /cache, not /system.

Change-Id: I70996d5cd5a81fe4871ee738bddb1437e8df6fb9

tools/releasetools/edify_generator.py

index 3d0da88..ceda0b9 100644 (file)
@@ -159,7 +159,7 @@ class EdifyGenerator(object):
     """Check that there's at least 'amount' space that can be made
     available on /cache."""
     self.script.append(('apply_patch_space(%d) || abort("Not enough free space '
-                        'on /system to apply patches.");') % (amount,))
+                        'on /cache to apply patches.");') % (amount,))
 
   def Mount(self, mount_point, mount_options_by_format=""):
     """Mount the partition with the given mount_point.