Please make update-notifier's apt_check.py easily accessible as a module/library

Bug #1353946 reported by Jörn Schönyan on 2014-08-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Undecided
Unassigned

Bug Description

Hello everyone,

apt_check.py has the ability to be used as a Python module:

[...]
def run(options=None):
[...]
    # return the number of upgrades (if its used as a module)
    return(upgrades,security_updates)
[...]

But (due to packaging), it's not possible to simple import it like

from apt_check import run

Would it be possible to fix that? Importing the module via full path is possible, but not really good coding style imho. I'm working on a Qt/QML version of update-notifier/update-manager for LXQt and maybe other DEs and don't want to reinvent the wheel.

Thanks for your time and attention!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers