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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: update-linux
3
- Version: 2.1.0
3
+ Version: 2.1.1
4
4
  Summary: Update Linux
5
5
  Home-page: https://github.com/barry-scott/CLI-tools
6
6
  Author: Barry Scott
@@ -8,7 +8,7 @@ import tempfile
8
8
  import json
9
9
  from config_path import ConfigPath
10
10
 
11
- VERSION = '2.1.0'
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:''' % (appname.name, self.config.readFilePath()))
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 host not in all_to_exclude:
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: update-linux
3
- Version: 2.1.0
3
+ Version: 2.1.1
4
4
  Summary: Update Linux
5
5
  Home-page: https://github.com/barry-scott/CLI-tools
6
6
  Author: Barry Scott
File without changes
File without changes