diff -Nru dotdee-1.11/ChangeLog dotdee-1.12/ChangeLog --- dotdee-1.11/ChangeLog 2013-08-21 21:45:36.000000000 +0000 +++ dotdee-1.12/ChangeLog 2014-04-28 16:37:38.000000000 +0000 @@ -1,4 +1,11 @@ -dotdee (1.11) released; urgency=low +dotdee (1.12) released; urgency=low + + * usr/sbin/dotdee: + - name our temp directories + + -- Dustin Kirkland Wed, 21 Aug 2013 16:51:14 -0500 + +dotdee (1.11-0ubuntu1) saucy; urgency=low [ Laszlo Boszormenyi ] * debian/control, debian/copyright, debian/dirs, debian/rules: @@ -8,7 +15,7 @@ - drop unecessary dirs file - specify rules format - -- Dustin Kirkland Fri, 16 Aug 2013 14:03:25 -0500 + -- Dustin Kirkland Wed, 21 Aug 2013 16:51:12 -0500 dotdee (1.10-0ubuntu1) saucy; urgency=low diff -Nru dotdee-1.11/debian/changelog dotdee-1.12/debian/changelog --- dotdee-1.11/debian/changelog 2014-04-28 16:47:43.000000000 +0000 +++ dotdee-1.12/debian/changelog 2014-04-28 16:47:44.000000000 +0000 @@ -1,3 +1,10 @@ +dotdee (1.12-0ubuntu1~utopic) utopic; urgency=low + + * usr/sbin/dotdee: + - name our temp directories + + -- Dustin Kirkland Wed, 21 Aug 2013 16:51:14 -0500 + dotdee (1.11-0ubuntu1) saucy; urgency=low [ Laszlo Boszormenyi ] @@ -8,7 +15,7 @@ - drop unecessary dirs file - specify rules format - -- Dustin Kirkland Fri, 16 Aug 2013 14:03:25 -0500 + -- Dustin Kirkland Wed, 21 Aug 2013 16:51:12 -0500 dotdee (1.10-0ubuntu1) saucy; urgency=low diff -Nru dotdee-1.11/usr/sbin/dotdee dotdee-1.12/usr/sbin/dotdee --- dotdee-1.11/usr/sbin/dotdee 2012-05-18 19:05:50.000000000 +0000 +++ dotdee-1.12/usr/sbin/dotdee 2014-04-27 23:39:54.000000000 +0000 @@ -74,7 +74,7 @@ } comment() { - local tmp=$(mktemp) + local tmp=$(mktemp /tmp/${PKG}-XXXXXXXX) echo "${2}" > "${tmp}" [ -n "${3}" ] && echo "${3}" >> "${tmp}" mv -f "${tmp}" "${DIR}/${1}.d/${COMMENT}" @@ -119,7 +119,7 @@ update-alternatives --install "${1}" "${HANDLE}" "$DIR/${1}" 50 # Establish update-alternatives link at a lower priority to the original one update-alternatives --install "${1}" "${HANDLE}" "$DIR/${1}.d/${ORIGINAL}" 20 - t=$(mktemp) + t=$(mktemp /tmp/${PKG}-XXXXXXXX) d=$(dirname "${1}") b=$(basename "${1}") sed -e "s@___DIRNAME___@${d}@g" -e "s@___BASENAME___@${b}@g" /usr/share/dotdee/watch_template > "${t}" @@ -154,7 +154,7 @@ update_contents() { # Construct the file via concatenation if is_dotdee "${1}" || [ "${NEW}" = 1 ]; then - tmp=$(mktemp) + tmp=$(mktemp /tmp/${PKG}-XXXXXXXX) # Conditionally add the comment header to the beginning of the generated file. # BUG: XML will need special handling, as comments cannot come before the doc type header if [ -f "${DIR}/${1}.d/${COMMENT}" ]; then @@ -187,7 +187,7 @@ # so by convention, feed the current state # of the file as STDIN, and write STDOUT to # the file - tmp2=$(mktemp) + tmp2=$(mktemp /tmp/${PKG}-XXXXXXXX) ${i} <"${tmp}" >"${tmp2}" mv -f "${tmp2}" "${tmp}" else