Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: src/scripts/package_script_whitelist.sh

Issue 542097: Move is_whitelisted to the common script so that all users get the previous fix (Closed)
Patch Set: Fix silent failure case Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scripts/dpkg_no_scripts.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/package_script_whitelist.sh
diff --git a/src/scripts/package_script_whitelist.sh b/src/scripts/package_script_whitelist.sh
index 2d23fe0755d18c0b5d2a24f015789e52dcaf1173..30b6f7aa610678c36fb273b51c78a508eebe1efa 100755
--- a/src/scripts/package_script_whitelist.sh
+++ b/src/scripts/package_script_whitelist.sh
@@ -47,19 +47,6 @@ following commands:
FLAGS "$@" || exit 1
eval set -- "${FLAGS_ARGV}"
-# Returns true if the input file is whitelisted.
-#
-# $1 - The file to check
-is_whitelisted() {
- local file=$1
- local whitelist="$FLAGS_whitelist"
- test -f "$whitelist" || return
-
- local checksum=$(md5sum "$file" | awk '{ print $1 }')
- local count=$(grep -c "$checksum" "${whitelist}" || /bin/true)
- test $count -ne 0
-}
-
# Adds a the file at the given path to the whitelist.
#
# $1 - Path to file to add to whitelist.
« no previous file with comments | « src/scripts/dpkg_no_scripts.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698