Changeset 736


Ignore:
Timestamp:
May 14, 2009, 6:25:03 PM (15 years ago)
Author:
joergs
Message:

bugfix: filenames with spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/technical/common/build/svn_build_prepare.sh

    r731 r736  
    5353if [ "$1" ]; then
    5454    EXPECTED_DEST_RPM_FILENAME=${DEST_DIR}/${BUILD_DIST}/`echo $1 | sed 's/\.src\./.*./'`
    55     if [ -f $EXPECTED_DEST_RPM_FILENAME ]; then
     55    if [ -f "$EXPECTED_DEST_RPM_FILENAME" ]; then
    5656        echo
    5757        echo "Build of \"${PACKAGE}\" unnecessary. Current RPM already at " $EXPECTED_DEST_RPM_FILENAME
     
    6363        cp -a "$1" ${BUILDTEMP}/src/${PACKAGE}
    6464        cd ${BUILDTEMP}/src/${PACKAGE}; rpm2cpio $1 | cpio -i
    65 fi                                                                                                                                                                                                                     
     65    fi
    6666else
    6767    # uses Subversion (svn) to generate more information for the RPM
     
    8282            SVN_BUILD_RELEASE=${SVN_BUILD_RELEASE}p
    8383            REBUILD="yes"
    84         else # check if RPM has been built already
     84        else
     85            # check if RPM has been built already
    8586            # TODO: this check is broken for OpenSUSE build service,
    8687            #       because version is changed later on
    8788            EXPECTED_DEST_RPM_FILENAME=${DEST_DIR}/${BUILD_DIST}/${PACKAGE}-${VERSION}-${SVN_BUILD_RELEASE}.*.rpm
    88             if [ -f $EXPECTED_DEST_RPM_FILENAME ]; then
     89            if [ -f "$EXPECTED_DEST_RPM_FILENAME" ]; then
    8990                echo
    9091                echo "Build of \"${PACKAGE}\" unnecessary. Current RPM already at " $EXPECTED_DEST_RPM_FILENAME
Note: See TracChangeset for help on using the changeset viewer.