#17181 closed enhancement (fixed)
mktemp tcl procedure needs a way to make a temporary directories (not just temporary files)
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 1.7.1 |
Component: | base | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: |
Description
In MacPorts we have a mktemp
tcl command but it only makes temporary files (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 (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 (portsubmit.tcl, added in r7272).
Change History (6)
comment:1 Changed 16 years ago by blb@…
comment:2 Changed 16 years ago by raimue (Rainer Müller)
Milestone: | MacPorts base enhancements → MacPorts 1.8.0 |
---|
comment:4 Changed 16 years ago by lperry (Perry Lee)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Closing.
comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
The ChangeLog was updated for this change in r44943.
comment:6 Changed 16 years ago by blb@…
Milestone: | MacPorts 1.8.0 → MacPorts 1.7.1 |
---|
Merged to 1.7 branch in r48233.
Note: See
TracTickets for help on using
tickets.
We can add a mkdtemp that calls C's mkdtemp() function, just like mktemp calls C's mktemp(). I'm thinking a good candidate for 1.8.0.