Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 656888 Details for
Bug 718424
net-analyzer/nagstamon: need py3.7, 3.8 port
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to handle optional VERSION_ID in /etc/os-release
nagstamon-3.4.1-version_id.patch (text/plain), 1.19 KB, created by
Zentoo
on 2020-08-26 12:12:55 UTC
(
hide
)
Description:
Patch to handle optional VERSION_ID in /etc/os-release
Filename:
MIME Type:
Creator:
Zentoo
Created:
2020-08-26 12:12:55 UTC
Size:
1.19 KB
patch
obsolete
>diff -Naur a/Nagstamon/Helpers.py b/Nagstamon/Helpers.py >--- a/Nagstamon/Helpers.py 2020-08-26 13:59:13.582204042 +0200 >+++ b/Nagstamon/Helpers.py 2020-08-26 14:08:35.036908166 +0200 >@@ -454,14 +454,18 @@ > for property in os_release_file.read_text().splitlines(): > key, value = property.split('=', 1) > os_release_dict[key] = value.strip('"').strip("'") >- return (os_release_dict['ID'], os_release_dict['VERSION_ID'], os_release_dict['NAME']) >+ return (os_release_dict.get('ID').lower(), >+ os_release_dict.get('VERSION_ID', 'unknown').lower(), >+ os_release_dict.get('NAME').lower()) > else: > return False > else: >- return platform.dist() >+ # fix for non-working build on Debian<10 >+ dist_name, dist_version, dist_id = platform.dist() >+ return dist_name.lower(), dist_version, dist_id > > >- # depending on column different functions have to be used >+# depending on column different functions have to be used > # 0 + 1 are column "Hosts", 1 + 2 are column "Service" due to extra font flag pictograms > SORT_COLUMNS_FUNCTIONS = {0: compare_host, > 1: compare_host,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 718424
: 656888 |
656890