From 4c1dbb68fd0e4165290fe103effb509c53e44c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20P=2E=20M=C3=B6ller?= Date: Mon, 28 Sep 2020 22:38:21 -0300 Subject: [PATCH] remove functions now imported from apt_check --- lubuntu-notifier.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lubuntu-notifier.py b/lubuntu-notifier.py index 8d90594..f375086 100755 --- a/lubuntu-notifier.py +++ b/lubuntu-notifier.py @@ -37,26 +37,6 @@ spec = importlib.util.spec_from_file_location( apt_check = importlib.util.module_from_spec(spec) spec.loader.exec_module(apt_check) -''' -DISTRO = subprocess.check_output( - ["lsb_release", "-c", "-s"], - universal_newlines=True).strip() - - -def isSecurityUpgrade(ver): - " check if the given version is a security update (or masks one) " - security_pockets = [("Ubuntu", "%s-security" % DISTRO), - ("UbuntuESM", "%s-infra-security" % DISTRO), - ("UbuntuESMApps", "%s-apps-security" % DISTRO), - ("gNewSense", "%s-security" % DISTRO), - ("Debian", "%s-updates" % DISTRO)] - for (file, index) in ver.file_list: - for origin, archive in security_pockets: - if (file.archive == archive and file.origin == origin): - return True - return False -''' - class Dialog(QWidget): ''' UI '''