Tar aime pas les noms avec un : dedans.
darcs-hash:20040916182804-41617-1ea5cb5fb4083fed0533e8567dd8b84b199a905e.gz
This commit is contained in:
parent
50da37ea16
commit
546ba8df41
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ if gethostname().split(".")[0] == 'zamok':
|
||||||
if not login or not home :
|
if not login or not home :
|
||||||
raise ValueError('Argument invalide')
|
raise ValueError('Argument invalide')
|
||||||
warn = ''
|
warn = ''
|
||||||
f = config.cimetiere + '/files/' + strftime('%Y-%m-%d-%H:%M_') + login + '.tar.bz2'
|
f = config.cimetiere + '/files/' + strftime('%Y-%m-%d-%Hh%Mm_') + login + '.tar.bz2'
|
||||||
status, output = commands.getstatusoutput("tar cjf '%s' '%s' /var/spool/mail/%s" % ( f,home,login) )
|
status, output = commands.getstatusoutput("tar cjf '%s' '%s' /var/spool/mail/%s" % ( f,home,login) )
|
||||||
if ( status != 512 and status!=0 ) or not os.path.isfile(f) :
|
if ( status != 512 and status!=0 ) or not os.path.isfile(f) :
|
||||||
# La 512 est si un des paths n'exite pas.
|
# La 512 est si un des paths n'exite pas.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue