Skip to content

Commit

Permalink
fix remnants of the old build info format
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 11, 2024
1 parent 5f20c7f commit f12349f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions xpra/gtk/dialogs/session_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,11 @@ def cattr(name):

def get_local_builddate() -> str:
try:
from xpra.build_info import BUILD_DATE, BUILD_TIME
return make_datetime(BUILD_DATE, BUILD_TIME)
except ImportError:
from xpra.build_info import build
date = build["date"]
time = build["time"]
return make_datetime(date, time)
except (ImportError, KeyError):
return ""


Expand Down
10 changes: 5 additions & 5 deletions xpra/util/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def full_version_str() -> str:
if BRANCH == "master":
rstr += " beta"
try:
from xpra.build_info import BUILD_TYPE
except ImportError:
pass
else:
if BUILD_TYPE.lower() == "light":
from xpra.build_info import build
btype = build["type"]
if btype == "light":
rstr += " (light build)"
except (ImportError, KeyError):
pass
return rstr


Expand Down

0 comments on commit f12349f

Please sign in to comment.