update-linux 2.1.0__tar.gz → 2.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {update-linux-2.1.0 → update-linux-2.1.1}/PKG-INFO +1 -1
- {update-linux-2.1.0 → update-linux-2.1.1}/update_linux/__init__.py +11 -6
- {update-linux-2.1.0 → update-linux-2.1.1}/update_linux.egg-info/PKG-INFO +1 -1
- {update-linux-2.1.0 → update-linux-2.1.1}/README.md +0 -0
- {update-linux-2.1.0 → update-linux-2.1.1}/setup.cfg +0 -0
- {update-linux-2.1.0 → update-linux-2.1.1}/setup_update_linux.py +0 -0
- {update-linux-2.1.0 → update-linux-2.1.1}/update_linux/__main__.py +0 -0
- {update-linux-2.1.0 → update-linux-2.1.1}/update_linux.egg-info/SOURCES.txt +0 -0
- {update-linux-2.1.0 → update-linux-2.1.1}/update_linux.egg-info/dependency_links.txt +0 -0
- {update-linux-2.1.0 → update-linux-2.1.1}/update_linux.egg-info/entry_points.txt +0 -0
- {update-linux-2.1.0 → update-linux-2.1.1}/update_linux.egg-info/requires.txt +0 -0
- {update-linux-2.1.0 → update-linux-2.1.1}/update_linux.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ import tempfile
|
|
|
8
8
|
import json
|
|
9
9
|
from config_path import ConfigPath
|
|
10
10
|
|
|
11
|
-
VERSION = '2.1.
|
|
11
|
+
VERSION = '2.1.1'
|
|
12
12
|
|
|
13
13
|
default_json_config_template = u'''{
|
|
14
14
|
"group":
|
|
@@ -169,15 +169,20 @@ class UpdateFedora:
|
|
|
169
169
|
|
|
170
170
|
if self.opt_help:
|
|
171
171
|
print(
|
|
172
|
-
'''Usage: %s <options> <group>|<host>...
|
|
172
|
+
'''Usage: %(appname)s <options> <group>|<host>...
|
|
173
|
+
|
|
174
|
+
%(appname)s version %(version)s
|
|
175
|
+
|
|
173
176
|
group - read from the JSON config file:
|
|
174
|
-
%s
|
|
177
|
+
%(config_file)s
|
|
175
178
|
|
|
176
179
|
each group is a list of hosts to be updated
|
|
177
180
|
|
|
178
181
|
host - host to be updated
|
|
179
182
|
|
|
180
|
-
options:''' %
|
|
183
|
+
options:''' % {'appname': appname.name
|
|
184
|
+
,'version': VERSION
|
|
185
|
+
,'config_file': self.config.readFilePath()} )
|
|
181
186
|
|
|
182
187
|
printOptionsHelp( self )
|
|
183
188
|
return 0
|
|
@@ -204,7 +209,7 @@ class UpdateFedora:
|
|
|
204
209
|
if host not in all_to_exclude:
|
|
205
210
|
self.all_hosts.append( host )
|
|
206
211
|
else:
|
|
207
|
-
if
|
|
212
|
+
if group_or_host not in all_to_exclude:
|
|
208
213
|
self.all_hosts.append( group_or_host )
|
|
209
214
|
|
|
210
215
|
if len(self.all_hosts) == 0:
|
|
@@ -274,8 +279,8 @@ For help:
|
|
|
274
279
|
if config_file is None:
|
|
275
280
|
json_config = default_json_config
|
|
276
281
|
self.debug( 'Using default builtin config' )
|
|
277
|
-
self.info( '', 'Creating default config in %s' )
|
|
278
282
|
config_file = self.config.saveFilePath( True )
|
|
283
|
+
self.info( '', 'Creating default config in %s' % (config_file,) )
|
|
279
284
|
with open( config_file, 'w' ) as f:
|
|
280
285
|
f.write( json_config )
|
|
281
286
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|