Opened 6 years ago
Closed 5 years ago
Last modified 5 years ago
#13178 closed Patch - Bug Fix (fixed)
Fix reading run level for smolt hardware profile on system with systemd
Reported by: | Owned by: | Stuart Auchterlonie | |
---|---|---|---|
Priority: | minor | Milestone: | 30.0 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | smolt, hardware profile |
Cc: | Ticket locked: | no |
Description
On systems with systemd determining the run level via /sbin/runlevel fails which triggers an exception. The code catches the exception and writes an error message to stderr. The error message is translated using the i18n function _(). However the file software.py is missing the appropriate import which causes it to fail with "NameError?: global name '_' is not defined". Adding the correct import statement "from i18n import _" fixes the error.
Attachments (1)
Change History (8)
Changed 6 years ago by
Attachment: | fix_read_runlevel_systemd.diff added |
---|
comment:1 Changed 6 years ago by
Milestone: | needs_triage → 30.0 |
---|---|
Owner: | set to Stuart Auchterlonie |
Status: | new → accepted |
Version: | Unspecified → Master Head |
comment:2 Changed 6 years ago by
Status: | accepted → infoneeded |
---|
Can I get a copy of the output from /sbin/runlevel
on a system
which triggers this exception?
Regards Stuart
comment:4 Changed 6 years ago by
Status: | infoneeded → assigned |
---|
comment:5 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Patch fixing missing import