summaryrefslogtreecommitdiffstats
path: root/tools/releasetools
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-08-03 16:55:57 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-08-03 16:55:57 -0700
commite8cb956b8aeefb7e940d25c95b107505656cc505 (patch)
treeae0cca4d8aecd2e45a85d13dcfa9ed4a7eb259c2 /tools/releasetools
parentc97ea27f86e339a43da314755d6350657960abe9 (diff)
parent828bbfb18838f04b93ffbed0d7d3b597beaa534c (diff)
downloadbuild-e8cb956b8aeefb7e940d25c95b107505656cc505.zip
build-e8cb956b8aeefb7e940d25c95b107505656cc505.tar.gz
build-e8cb956b8aeefb7e940d25c95b107505656cc505.tar.bz2
am 828bbfb1: in amend, remove symlink targets before creating them
Merge commit '828bbfb18838f04b93ffbed0d7d3b597beaa534c' * commit '828bbfb18838f04b93ffbed0d7d3b597beaa534c': in amend, remove symlink targets before creating them
Diffstat (limited to 'tools/releasetools')
-rw-r--r--tools/releasetools/amend_generator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/releasetools/amend_generator.py b/tools/releasetools/amend_generator.py
index 3e8af13..70e71d4 100644
--- a/tools/releasetools/amend_generator.py
+++ b/tools/releasetools/amend_generator.py
@@ -180,6 +180,7 @@ class AmendGenerator(object):
def MakeSymlinks(self, symlink_list):
"""Create symlinks, given a list of (dest, link) pairs."""
+ self.DeleteFiles([i[1] for i in symlink_list])
self.script.extend(["symlink %s %s" % (i[0], self._FileRoot(i[1]))
for i in sorted(symlink_list)])