Project

General

Profile

Anomalie #4614

le lancement d'une mise à jour en différé ne marche plus dans la version actuelle (2.3.7)

Added by Bruno Boiget over 8 years ago. Updated about 8 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
12/17/2012
Due date:
% Done:

100%

Distribution:
EOLE 2.3

Description

la fonction prog_maj_differee ne traduit plus automatiquement le nombre d'heures en chaîne avant de la passer en argument.

>>> from creole import maj
>>> maj.prog_maj_differee(2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/creole/maj.py", line 123, in prog_maj_differee
    ret = system_out(['/usr/bin/at', 'now', '+', heure, 'hours'], stdin=stdin)
  File "/usr/lib/pymodules/python2.6/pyeole/process.py", line 100, in system_out
    env=env)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
TypeError: execv() arg 2 must contain only strings

Associated revisions

Revision 775babaf (diff)
Added by Bruno Boiget over 8 years ago

prog_maj_differree : force le passage du nombre d'heures en chaine (fixes #4614)

Revision 8c39991e (diff)
Added by Bruno Boiget over 8 years ago

prog_maj_differree : force le passage du nombre d'heures en chaine (ref #4614)

History

#1 Updated by Bruno Boiget over 8 years ago

  • Project changed from zephir-client to creole

#2 Updated by Bruno Boiget over 8 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#4 Updated by Daniel Dehennin about 8 years ago

  • Status changed from Résolu to Fermé
root@amonecole:~# python
Python 2.6.5 (r265:79063, Oct  1 2012, 22:04:36) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from creole import maj
>>> maj.prog_maj_differee(2)
True
>>> ^D
root@amonecole:~#
root@amonecole:~#
root@amonecole:~# atq
1       Tue Feb 19 18:59:00 2013 a root
root@amonecole:~#
root@amonecole:~#
root@amonecole:~# at -c 1
#!/bin/sh
# atrun uid=0 gid=0
# mail root 0
umask 22
LC_PAPER=fr_FR.UTF-8; export LC_PAPER
LESSKEY=/etc/.less; export LESSKEY
LC_ADDRESS=fr_FR.UTF-8; export LC_ADDRESS
LC_MONETARY=fr_FR.UTF-8; export LC_MONETARY
HISTSIZE=1000; export HISTSIZE
SSH_CLIENT=192.168.100.1\ 59840\ 22; export SSH_CLIENT
LC_NUMERIC=fr_FR.UTF-8; export LC_NUMERIC
SSH_TTY=/dev/pts/13; export SSH_TTY
LC_ALL=fr_FR.UTF-8; export LC_ALL
HISTFILESIZE=9999; export HISTFILESIZE
USER=root; export USER
LC_TELEPHONE=fr_FR.UTF-8; export LC_TELEPHONE
LS_COLORS=rs=0:di=01\;34:ln=01\;36:hl=44\;37:pi=40\;33:so=01\;35:do=01\;35:bd=40\;33\;01:cd=40\;33\;01:or=40\;31\;01:su=37\;41:sg=30\;43:ca=30\;41:tw=30\;42:ow=34\;42:st=37\;44:ex=01\;32:\*.tar=01\;31:\*.tgz=01\;31:\*.arj=01\;31:\*.taz=01\;31:\*.lzh=01\;31:\*.lzma=01\;31:\*.zip=01\;31:\*.z=01\;31:\*.Z=01\;31:\*.dz=01\;31:\*.gz=01\;31:\*.bz2=01\;31:\*.bz=01\;31:\*.tbz2=01\;31:\*.tz=01\;31:\*.deb=01\;31:\*.rpm=01\;31:\*.jar=01\;31:\*.rar=01\;31:\*.ace=01\;31:\*.zoo=01\;31:\*.cpio=01\;31:\*.7z=01\;31:\*.rz=01\;31:\*.jpg=01\;35:\*.jpeg=01\;35:\*.gif=01\;35:\*.bmp=01\;35:\*.pbm=01\;35:\*.pgm=01\;35:\*.ppm=01\;35:\*.tga=01\;35:\*.xbm=01\;35:\*.xpm=01\;35:\*.tif=01\;35:\*.tiff=01\;35:\*.png=01\;35:\*.svg=01\;35:\*.svgz=01\;35:\*.mng=01\;35:\*.pcx=01\;35:\*.mov=01\;35:\*.mpg=01\;35:\*.mpeg=01\;35:\*.m2v=01\;35:\*.mkv=01\;35:\*.ogm=01\;35:\*.mp4=01\;35:\*.m4v=01\;35:\*.mp4v=01\;35:\*.vob=01\;35:\*.qt=01\;35:\*.nuv=01\;35:\*.wmv=01\;35:\*.asf=01\;35:\*.rm=01\;35:\*.rmvb=01\;35:\*.flc=01\;35:\*.avi=01\;35:\*.fli=01\;35:\*.flv=01\;35:\*.gl=01\;35:\*.dl=01\;35:\*.xcf=01\;35:\*.xwd=01\;35:\*.yuv=01\;35:\*.axv=01\;35:\*.anx=01\;35:\*.ogv=01\;35:\*.ogx=01\;35:\*.aac=00\;36:\*.au=00\;36:\*.flac=00\;36:\*.mid=00\;36:\*.midi=00\;36:\*.mka=00\;36:\*.mp3=00\;36:\*.mpc=00\;36:\*.ogg=00\;36:\*.ra=00\;36:\*.wav=00\;36:\*.axa=00\;36:\*.oga=00\;36:\*.spx=00\;36:\*.xspf=00\;36:; export LS_COLORS
ENV=/root/.bashrc; export ENV
SSH_AUTH_SOCK=/tmp/ssh-ZgBKWj3893/agent.3893; export SSH_AUTH_SOCK
TMOUT=0; export TMOUT
MAIL=/var/mail/root; export MAIL
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/share/eole:/usr/games; export PATH
LC_MESSAGES=fr_FR.UTF-8; export LC_MESSAGES
LC_IDENTIFICATION=fr_FR.UTF-8; export LC_IDENTIFICATION
LC_COLLATE=fr_FR.UTF-8; export LC_COLLATE
INPUTRC=/etc/inputrc; export INPUTRC
PWD=/root; export PWD
EDITOR=vi; export EDITOR
LANG=fr_FR.UTF-8; export LANG
PYTHONSTARTUP=/etc/pythonrc; export PYTHONSTARTUP
LC_MEASUREMENT=fr_FR.UTF-8; export LC_MEASUREMENT
PS1=\\[\\e]0\;\\u@\\h:\ \\w\\a\\]\${debian_chroot:+\(\$debian_chroot\)}\\u@\\h:\\w\\\$\ ; export PS1
HISTIGNORE=; export HISTIGNORE
HISTCONTROL=ignoredups; export HISTCONTROL
SHLVL=1; export SHLVL
HOME=/root; export HOME
LESS=-MM; export LESS
PYTHONPATH=:/usr/share/eole/; export PYTHONPATH
LOGNAME=root; export LOGNAME
LC_CTYPE=fr_FR.UTF-8; export LC_CTYPE
SSH_CONNECTION=192.168.100.1\ 59840\ 192.168.100.120\ 22; export SSH_CONNECTION
LESSOPEN=\|\ /bin/lesspipe\ %s; export LESSOPEN
LESSCLOSE=/bin/lesspipe\ %s\ %s; export LESSCLOSE
LC_TIME=fr_FR.UTF-8; export LC_TIME
HISTTIMEFORMAT=[\ %d/%m/%Y\ %H:%M:%S\ ]\ ; export HISTTIMEFORMAT
HISTFILE=/root/.bash_history; export HISTFILE
LC_NAME=fr_FR.UTF-8; export LC_NAME
LINES=78; export LINES
COLUMNS=239; export COLUMNS
cd /root || {
         echo 'Execution directory inaccessible' >&2
         exit 1
}
rm -f /var/lib/eole/reports/maj-diff.txt
Maj-Auto -R

Also available in: Atom PDF