Change name of get_lsb_information()

merge-requests/64/head
Hugo Posnic 2016-12-17 11:57:13 +01:00
parent 7ee76863f9
commit 849c7e4ad3
1 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ class ManjaroHello():
Gtk.main_quit(*args) Gtk.main_quit(*args)
def get_infos(): def get_infos():
lsb = get_lsb_information() lsb = get_lsb_infos()
infos = {} infos = {}
infos["codename"] = lsb.get("CODENAME", None) infos["codename"] = lsb.get("CODENAME", None)
infos["release"] = lsb.get("RELEASE", None) infos["release"] = lsb.get("RELEASE", None)
@ -226,7 +226,7 @@ def get_infos():
infos["live"] = os.path.exists("/bootmnt/manjaro") or os.path.exists("/run/miso/bootmnt/manjaro") infos["live"] = os.path.exists("/bootmnt/manjaro") or os.path.exists("/run/miso/bootmnt/manjaro")
return infos return infos
def get_lsb_information(): def get_lsb_infos():
lsb = {} lsb = {}
try: try:
with open("/etc/lsb-release") as lsb_file: with open("/etc/lsb-release") as lsb_file: