这个脚本运行时总是显示”Your system is up-to-date
“
看下面好像有一处要改,不知如何改为适用于中文的!好像要改下面某处:
p = runpacman()
#parse pacmans output
for line in p.stdout:
if re.match('(Cíle|Pakete|Targets|Se procesará|Cibles|Pacchetti|'
'Celuje|Pacotes|Цели):', line):
program = line.split()[1:]
for line in p.stdout:
if not line.strip():
break
program += line.split()