pamac-classic/pamac-update

17 lines
461 B
Plaintext
Raw Normal View History

2012-12-12 13:12:27 -03:00
#! /usr/bin/python
# -*-coding:utf-8 -*-
2012-12-12 13:12:27 -03:00
from os import geteuid
2012-12-29 11:06:44 -03:00
from backend import update, transaction
2012-12-12 13:12:27 -03:00
if __name__ == "__main__":
2012-12-15 13:27:36 -03:00
if geteuid() == 0:
2012-12-29 11:06:44 -03:00
transaction.progress_label.set_text('Refreshing...')
transaction.progress_bar.pulse()
transaction.action_icon.set_from_file('/usr/share/icons/hicolor/24x24/status/refresh-cache.png')
transaction.ProgressWindow.show_all()
2012-12-15 13:27:36 -03:00
transaction.do_refresh()
2012-12-29 11:06:44 -03:00
transaction.ProgressWindow.hide()
update.main()