This repository has been archived on 2025-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pamac-classic/pamac-check-updates
2013-02-23 17:02:53 +01:00

17 lines
301 B
Python
Executable File

#! /usr/bin/python
# -*-coding:utf-8-*-
from pamac import common, transaction
if not common.pid_file_exists():
print('checking updates')
common.write_pid_file()
try:
transaction.Refresh()
transaction.StopDaemon()
except:
pass
finally:
common.rm_pid_file()
print('check updates done')