From 31cecc9afeab3b9fce421ca49ae0366c45d3823c Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Tue, 11 Nov 2008 17:53:34 +0000 Subject: [PATCH] [releng] Avoid re-signing Orbit bundles --- .../bin/mkTestUpdates.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/releng/org.eclipse.rse.updatesite/bin/mkTestUpdates.sh b/releng/org.eclipse.rse.updatesite/bin/mkTestUpdates.sh index 5a0ba83fcaa..aa61c5910c3 100755 --- a/releng/org.eclipse.rse.updatesite/bin/mkTestUpdates.sh +++ b/releng/org.eclipse.rse.updatesite/bin/mkTestUpdates.sh @@ -105,8 +105,12 @@ elif [ ${TYPE} = testSigned ]; then cp -R ${SITE}/../testUpdates/features/*.jar ${STAGING}/updates.${stamp}/features cd ${STAGING}/updates.${stamp}/features for x in `ls *.jar`; do - echo "signing feature: ${x}" - sign ${x} nomail >/dev/null + result=`jarsigner -verify ${x} | head -1` + if [ "$result" != "jar verified." ]; then + # do not sign Orbit bundles again since they are signed already + echo "signing feature: ${x}" + sign ${x} nomail >/dev/null + fi done TRIES=10 while [ $TRIES -gt 0 ]; do @@ -140,8 +144,12 @@ elif [ ${TYPE} = testSigned ]; then cp ${SITE}/../testUpdates/plugins/*.jar ${STAGING}/updates.${stamp}/plugins cd ${STAGING}/updates.${stamp}/plugins for x in `ls *.jar`; do - echo "signing plugin: ${x}" - sign ${x} nomail >/dev/null + result=`jarsigner -verify ${x} | head -1` + if [ "$result" != "jar verified." ]; then + # do not sign Orbit bundles again since they are signed already + echo "signing plugin: ${x}" + sign ${x} nomail >/dev/null + fi done TRIES=10 while [ $TRIES -gt 0 ]; do