summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src
diff options
context:
space:
mode:
authorelijahtaylor@google.com <elijahtaylor@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-29 22:41:05 +0000
committerelijahtaylor@google.com <elijahtaylor@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-29 22:41:05 +0000
commit7ec1fb15a7e6bf7164729cf69a87da5cdf102f4b (patch)
tree69031093fcc2a6c47003c89c89246430f51ead3c /native_client_sdk/src
parent7985e99c01872797c313270071f638c473fc180e (diff)
downloadchromium_src-7ec1fb15a7e6bf7164729cf69a87da5cdf102f4b.zip
chromium_src-7ec1fb15a7e6bf7164729cf69a87da5cdf102f4b.tar.gz
chromium_src-7ec1fb15a7e6bf7164729cf69a87da5cdf102f4b.tar.bz2
Fix native_client_sdk oshelpers 'rm' command.
BUG=none TEST=manual This change only affects the Native Client SDK Review URL: https://chromiumcodereview.appspot.com/9923022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129707 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/src')
-rw-r--r--native_client_sdk/src/tools/oshelpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/native_client_sdk/src/tools/oshelpers.py b/native_client_sdk/src/tools/oshelpers.py
index 9e878d3..c174f5b 100644
--- a/native_client_sdk/src/tools/oshelpers.py
+++ b/native_client_sdk/src/tools/oshelpers.py
@@ -252,10 +252,10 @@ def Remove(args):
for pattern in files:
dst_files = glob.glob(pattern)
# Ignore non existing files when using force
- if len(files) == 0 and options.force:
+ if len(dst_files) == 0 and options.force:
print "rm: Skipping " + pattern
continue
- elif len(files) == 0:
+ elif len(dst_files) == 0:
raise OSError('rm: no such file or directory: ' + pattern)
for dst in dst_files: