コード例 #1
0
ファイル: __init__.py プロジェクト: mrmoneyc/lazyscripts
def ensure_package_sources():
    msg =_("""
we need to modify your software sources,
do you want to let lazyscripts modify your software sources?
""")
    if query_yes_no (msg):
        add_official_repos.main ()
    else:
        show_error (_('Lazyscripts will not change your settings') +
                    _('please ensure your software sources right\n\n') +
                    _('comment: please enable main, universe, ') +
                    _('multiverse and restricted section'))

        # update GUI
        while gtk.events_pending ():
           gtk.main_iteration ()
        os.system (syscmds.repo_config);