~ubuntu-branches/ubuntu/lucid/checkinstall/lucid

« back to all changes in this revision

Viewing changes to installwatch-0.7.0beta5/installwatch

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Handler
  • Date: 2008-07-10 13:44:30 UTC
  • Revision ID: james.westby@ubuntu.com-20080710134430-nc5ttaj52tizyrw2
Tags: 1.6.1-7ubuntu1
* Merge from debian unstable, remaining changes (LP: #243132):
  - Use /usr/bin/which instead of which.
  - add make to Depends, checkinstall doesn't work without it.
  - Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        local mkt_refdir=$1
75
75
        local mkt_wrkdir=""
76
76
 
77
 
        mkt_wrkdir=${BASE_TMP_DIR}/\
78
 
`awk 'BEGIN {\
79
 
        srand();\
80
 
        for (i=1;i<21;i++) {\
81
 
                a=95;\
82
 
                while (a > 90 && a < 97) {\
83
 
                        a=65+int(50*rand())\
84
 
                };\
85
 
                printf("%c", a) \
86
 
        }\
87
 
}'`
88
 
        
89
 
        [ -e "${mkt_wrkdir}" ] && rm -rf ${mkt_wrkdir}
90
 
        if [ -e "${mkt_wrkdir}" ]; then 
91
 
                echo
92
 
                echo "Error : My temp dir exists already. This looks like a symlink attack!"
93
 
                echo 
94
 
                echo "*** Aborting ***"
95
 
                echo
96
 
                exit 1
97
 
        fi      
98
 
 
99
 
        mkdir ${mkt_wrkdir}
100
 
        chmod 0700 ${mkt_wrkdir}
 
77
        mkt_wrkdir=`mktemp -q -d -p ${BASE_TMP_DIR}`
101
78
 
102
79
        eval $mkt_refdir=\$mkt_wrkdir
103
80
}