pamac-classic/pamac-check-updates

17 lines
301 B
Plaintext
Raw Normal View History

2013-02-16 13:27:46 -03:00
#! /usr/bin/python
# -*-coding:utf-8-*-
2013-02-22 12:43:52 -03:00
from pamac import common, transaction
2013-02-16 13:27:46 -03:00
2013-02-22 12:43:52 -03:00
if not common.pid_file_exists():
print('checking updates')
common.write_pid_file()
2013-02-23 13:02:53 -03:00
try:
transaction.Refresh()
transaction.StopDaemon()
except:
pass
finally:
common.rm_pid_file()
print('check updates done')