user devscri...@packages.debian.org
usertag 610027 general
retitle 610027 Use mkdir's --tmpdir instead of absolute paths
thanks

On Fri, Jan 14, 2011 at 03:59:41PM -0700, Neil Mayhew wrote:
> When reversioning a large package on a system that has a small /tmp,
> deb-reversion will fail with messages like this:
> 
> tar: ./usr/...: Cannot write: No space left on device
> 
> Setting TMPDIR n the environment doesn't help, because deb-reversion 
> hard-codes
> the use of /tmp:
> 
>   TMPDIR=$(mktemp -d /tmp/deb-reversion.XXXXXX)
> 
> Changing this as follows solves the problem:
> 
>   TMPDIR=$(mktemp -d --tmpdir deb-reversion.XXXXXX)

Thanks for the suggestion.  I'll apply similar changes to the rest of
our scripts that need it.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@debian.org>

Attachment: signature.asc
Description: Digital signature

Reply via email to