Mercurial > pidgin.yaz
changeset 30432:c940e427e486
Improve error handling
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 21 May 2010 21:28:24 +0000 |
parents | 2519dd5b92c5 |
children | 92767d9eac2e |
files | pidgin/win32/nsis/generate_gtk_zip.sh |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/win32/nsis/generate_gtk_zip.sh Fri May 21 14:39:02 2010 +0000 +++ b/pidgin/win32/nsis/generate_gtk_zip.sh Fri May 21 21:28:24 2010 +0000 @@ -45,14 +45,15 @@ FILE=$(basename $URL) if [ ! -e $FILE ]; then echo Downloading $NAME - wget $URL + wget $URL || return 1 fi EXTENSION=${FILE##*.} #This is an OpenSuSE build service RPM if [ $EXTENSION == 'rpm' ]; then + echo "Generating zip from $FILE" FILE=$(../rpm2zip.sh $FILE) fi - unzip -q $FILE -d $INSTALL_DIR + unzip -q $FILE -d $INSTALL_DIR || exit 1 echo "$NAME" >> $CONTENTS_FILE } @@ -78,3 +79,5 @@ #Generate zip file to be included in installer zip -9 -r ../gtk-runtime-$BUNDLE_VERSION.zip Gtk +exit 0 +