diff --git a/build_library/test_image_content.sh b/build_library/test_image_content.sh index 5c49397b71..2d007ecb7f 100644 --- a/build_library/test_image_content.sh +++ b/build_library/test_image_content.sh @@ -1,4 +1,4 @@ -# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -31,5 +31,15 @@ test_image_content() { returncode=1 fi + local blacklist_dirs=( + "$root/usr/share/locale" + ) + for dir in "${blacklist_dirs[@]}"; do + if [ -d "$dir" ]; then + error "test_image_content: Blacklisted directory found: $dir" + returncode=1 + fi + done + return $returncode }