Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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@…

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.

comment:2 Changed 16 years ago by raimue (Rainer Müller)

Milestone: MacPorts base enhancementsMacPorts 1.8.0

comment:3 Changed 16 years ago by lperry (Perry Lee)

Added mkdtemp in r43902.

comment:4 Changed 16 years ago by lperry (Perry Lee)

Resolution: fixed
Status: newclosed

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.0MacPorts 1.7.1

Merged to 1.7 branch in r48233.

Note: See TracTickets for help on using tickets.