Ticket #9444: trac_9444-spkg_build_dir_t2.patch

File trac_9444-spkg_build_dir_t2.patch, 647 bytes (added by mpatel, 11 years ago)

Step out of spkg/build/foo-x.y.z before deleting it.

  • sage-spkg

    # HG changeset patch
    # User Mitesh Patel <qed777@gmail.com>
    # Date 1278481026 25200
    # Node ID b3a4fad75b225a94f5f9d4681770903fa0924c3f
    # Parent  ba84c5fa2b62fa831f9b5b06ab9516a0594e409d
    #9444: Step out of spkg/build/foo-x.y.z before deleting it
    
    diff --git a/sage-spkg b/sage-spkg
    a b if [ $? -eq 0 ]; then 
    372372        echo "Now cleaning up tmp files."
    373373        if [ -d "$SAGE_PACKAGES/build/$PKG_NAME" ]; then
    374374           # the if is there only to avoid the possibility of a weird bug.
     375            cd "$SAGE_PACKAGES/build/"
    375376            rm -rf "$SAGE_PACKAGES/build/$PKG_NAME"
    376377        fi
    377378    else