From 7d2ec627fad9c30616556d4d92edba198b476bf3 Mon Sep 17 00:00:00 2001 From: "preed%mozilla.com" Date: Tue, 7 Mar 2006 00:33:07 +0000 Subject: [PATCH] Bug 325561: Fix partial updates failing when people remove search plugins. r=darin. --- tools/update-packaging/common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/update-packaging/common.sh b/tools/update-packaging/common.sh index 54cb2141768..b20ee0f1fd9 100755 --- a/tools/update-packaging/common.sh +++ b/tools/update-packaging/common.sh @@ -49,11 +49,14 @@ make_add_instruction() { make_patch_instruction() { f="$1" is_extension=$(echo "$f" | grep -c 'extensions/.*/') + is_search_plugin=$(echo "$f" | grep -c 'searchplugins/.*') if [ $is_extension = "1" ]; then # Use the subdirectory of the extensions folder as the file to test # before performing this add instruction. testdir=$(echo "$f" | sed 's/\(extensions\/[^\/]*\)\/.*/\1/') echo "patch-if \"$testdir\" \"$f.patch\" \"$f\"" + elif [ $is_search_plugin = "1" ]; then + echo "patch-if \"$f\" \"$f.patch\" \"$f\"" else echo "patch \"$f.patch\" \"$f\"" fi