summaryrefslogtreecommitdiffstats
path: root/build/win
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 23:24:31 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 23:24:31 +0000
commit10ba0ea095e4765a2d60751371f7dca8e36e2d18 (patch)
tree90578730a45f5dd182e497b9df2f487b0fc4689b /build/win
parent9678af57601ea2e8d0765e312edcb3b27c1bee1e (diff)
downloadchromium_src-10ba0ea095e4765a2d60751371f7dca8e36e2d18.zip
chromium_src-10ba0ea095e4765a2d60751371f7dca8e36e2d18.tar.gz
chromium_src-10ba0ea095e4765a2d60751371f7dca8e36e2d18.tar.bz2
Fix infinite loop in grit headers clobbering script.
It turns out that on Windows the path-splitting function will always preserve the drive part (c:\). TEST=none http://crbug.com/17706 Review URL: http://codereview.chromium.org/159827 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22344 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/win')
-rw-r--r--build/win/clobber_generated_headers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/win/clobber_generated_headers.py b/build/win/clobber_generated_headers.py
index 7b90b37..cfcf83b 100644
--- a/build/win/clobber_generated_headers.py
+++ b/build/win/clobber_generated_headers.py
@@ -22,6 +22,8 @@ def total_split(path):
components = []
while path:
head, tail = os.path.split(path)
+ if not tail:
+ break
components.append(tail)
path = head
return list(reversed(components))
@@ -46,4 +48,4 @@ for path in sys.argv[1:]:
os.remove(full_path)
print 'Clobbered ' + full_path
except OSError:
- print 'Could not remove ' + full_path + '. Continuing.' \ No newline at end of file
+ print 'Could not remove ' + full_path + '. Continuing.'