From 746358a451db4cad067760f248e49b47d5992776 Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Mon, 13 Jul 2009 16:54:09 +0000 Subject: [PATCH] show package name when error occurs during build; move gpg checks a bit so we can still edit info and slackbuild files when using the local repository --- src/usr/sbin/sbopkg | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index 2e1c71f..aa18277 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -1096,11 +1096,11 @@ info_item() { RETVAL=1 break fi - fi - extract_tarball $SHORTPATH $REPO_DIR/$CATEGORY - if [[ $? == 1 ]]; then - RETVAL=1 - break + extract_tarball $SHORTPATH $REPO_DIR/$CATEGORY + if [[ $? == 1 ]]; then + RETVAL=1 + break + fi fi customize_item ;; @@ -1124,13 +1124,19 @@ info_item() { fi ;; Extract ) - extract_tarball $SHORTPATH $REPO_DIR/$CATEGORY - if [[ $? == 0 ]]; then - dialog --title "Done" --msgbox "$(crunch "The \ - tarball has been extracted.")" 8 30 + if [[ ! -z $REPO_GPG ]]; then + extract_tarball $SHORTPATH $REPO_DIR/$CATEGORY + if [[ $? == 0 ]]; then + dialog --title "Done" --msgbox "$(crunch "The \ + tarball has been extracted.")" 8 30 + else + RETVAL=1 + break + fi else - RETVAL=1 - break + dialog --title "ERROR" --msgbox "$(crunch "GPG \ + tarballs are not available for the $REPO_NAME \ + repository.")" 8 30 fi ;; Queue ) add_item_to_queue $APP ;; @@ -2931,6 +2937,7 @@ build_package() { echo " Error occurred with build. Please check the log." \ >> $TMPSUMMARYLOG echo + echo "$PKGNAME:" echo "Would you like to continue processing the rest of the" echo "build queue or would you like to abort? If this failed" echo "package is a dependency of another package in the queue"