[MacPorts] #17181: mktemp tcl procedure needs a way to make a temporary directories (not just temporary files)
MacPorts
noreply at macports.org
Mon Nov 10 15:02:25 PST 2008
#17181: mktemp tcl procedure needs a way to make a temporary directories (not just
temporary files)
-------------------------------------+--------------------------------------
Reporter: ryandesign at macports.org | Owner: macports-tickets at lists.macosforge.org
Type: enhancement | Status: new
Priority: Normal | Milestone: MacPorts base enhancements
Component: base | Version: 1.6.0
Keywords: | Port:
-------------------------------------+--------------------------------------
In MacPorts we have a `mktemp` tcl command but it only makes temporary
files ([browser:trunk/base/src/pextlib1.0/Pextlib.c Pextlib.c], added in
r1045).
Sometimes we need to make temporary directories. For example, in the code
that handles the "`use_dmg yes`" portfile directive
([browser:trunk/base/src/port1.0/portextract.tcl portextract.tcl], added
in r36708), I used "`exec mktemp -d`" because the tcl "`mktemp`" didn't do
this.
There's even existing code in `port submit` that uses the tcl `mktemp` as
if it creates a temporary directory, which can't possibly work
([browser:trunk/base/src/port1.0/portsubmit.tcl portsubmit.tcl], added in
r7272).
--
Ticket URL: <http://trac.macports.org/ticket/17181>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list