FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 07-05-2010, 05:39 AM
Eric Bélanger
 
Default checkpkg: Use temporary working directory

On Sun, Jul 4, 2010 at 9:25 PM, Evangelos Foutras <foutrelis@gmail.com> wrote:
> On 05/07/10 04:18, Eric Bélanger wrote:
>>
>> Signed-off-by: Eric Bélanger<snowmaniscool@gmail.com>
>> ---
>> *checkpkg | * *8 ++++++++
>> *1 files changed, 8 insertions(+), 0 deletions(-)
>>
>> diff --git a/checkpkg b/checkpkg
>> index 47fb672..7765d80 100755
>> --- a/checkpkg
>> +++ b/checkpkg
>> @@ -27,6 +27,12 @@ if [ "$arch" == 'any' ]; then
>> * * * *CARCH='any'
>> *fi
>>
>> +TEMPDIR=$(mktemp /tmp/checkpkg-script.XXXX)
>> +rm $TEMPDIR
>> +mkdir -p $TEMPDIR
>
> mktemp can be called with the -d switch and it will create a directory
> instead of a file. I believe that's the preferable way to go about it.
>

Agree. I had just copied that snippet from the lddd script. If this
patch is accepted, I'll sumbit another patch to use the -d option in
both scripts.
 

Thread Tools




All times are GMT. The time now is 02:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org