mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-10-26 03:33:37 +03:00
Compare commits
5 Commits
man_gpupda
...
0.8.1-alt1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb54d3e01e | ||
|
|
e2c386b6d0 | ||
|
66c2303069
|
|||
|
|
e9cf33855c | ||
|
3eae206e6f
|
@@ -21,11 +21,27 @@ import threading
|
||||
import logging
|
||||
from util.logging import slogm
|
||||
|
||||
def control_subst(preg_name):
|
||||
'''
|
||||
This is a workaround for control names which can't be used in
|
||||
PReg/ADMX files.
|
||||
'''
|
||||
control_triggers = dict()
|
||||
control_triggers['dvd_rw-format'] = 'dvd+rw-format'
|
||||
control_triggers['dvd_rw-mediainfo'] = 'dvd+rw-mediainfo'
|
||||
control_triggers['dvd_rw-booktype'] = 'dvd+rw-booktype'
|
||||
|
||||
result = preg_name
|
||||
if preg_name in control_triggers:
|
||||
result = control_triggers[preg_name]
|
||||
|
||||
return result
|
||||
|
||||
class control:
|
||||
def __init__(self, name, value):
|
||||
if type(value) != int and type(value) != str:
|
||||
raise Exception('Unknown type of value for control')
|
||||
self.control_name = name
|
||||
self.control_name = control_subst(name)
|
||||
self.control_value = value
|
||||
self.possible_values = self._query_control_values()
|
||||
if self.possible_values == None:
|
||||
|
||||
@@ -74,10 +74,13 @@ def check_krb_ticket():
|
||||
try:
|
||||
subprocess.check_call(['klist', '-s'])
|
||||
output = subprocess.check_output('klist', stderr=subprocess.STDOUT).decode()
|
||||
logging.info(output)
|
||||
result = True
|
||||
log('D17')
|
||||
except:
|
||||
log('E14')
|
||||
logdata = dict()
|
||||
logdata['output'] = output
|
||||
log('D17', logdata)
|
||||
except Exception as exc:
|
||||
logdata = dict()
|
||||
logdata['krb-exc'] = exc
|
||||
log('E14', logdata)
|
||||
|
||||
return result
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
%define _unpackaged_files_terminate_build 1
|
||||
|
||||
Name: gpupdate
|
||||
Version: 0.8.0
|
||||
Version: 0.8.1
|
||||
Release: alt1
|
||||
|
||||
Summary: GPT applier
|
||||
@@ -107,6 +107,10 @@ rm -f %_cachedir/%name/registry.sqlite
|
||||
%exclude %python3_sitelibdir/gpoa/test
|
||||
|
||||
%changelog
|
||||
* Fri Sep 11 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.8.1-alt1
|
||||
- Workaround for control names with special symbols
|
||||
- Improved logging on Kerberos errors
|
||||
|
||||
* Fri Sep 04 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.8.0-alt1
|
||||
- Improve gpo applier logging
|
||||
- Add new configuration file /etc/gpupdate/gpupdate.ini
|
||||
|
||||
Reference in New Issue
Block a user