[Bug 1353946] [NEW] Please make update-notifier's apt_check.py easily accessible as a module/library

Jörn Schönyan joern.schoenyan at web.de
Thu Aug 7 10:37:17 UTC 2014


Public bug reported:

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!

** Affects: update-notifier (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1353946

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

Status in “update-notifier” package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1353946/+subscriptions



More information about the foundations-bugs mailing list