pamac-classic/pamac-check-updates

14 lines
296 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()
transaction.Refresh()
transaction.TransactionDone()
transaction.StopDaemon()
common.rm_pid_file()
print('check updates done')