update-linux 3.4.0__tar.gz → 3.4.2__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.4
2
2
  Name: update-linux
3
- Version: 3.4.0
3
+ Version: 3.4.2
4
4
  Summary: Command to automate the routine updating of packages and system upgrading for Unix systems.
5
5
  Author-email: Barry Scott <barry@barrys-emacs.org>
6
6
  License: Apache-2.0
@@ -9,7 +9,7 @@ import tempfile
9
9
  import json
10
10
  from config_path import ConfigPath # type: ignore
11
11
 
12
- VERSION = '3.4.0'
12
+ VERSION = '3.4.2'
13
13
 
14
14
  default_json_config_template = u'''{
15
15
  "group":
@@ -170,9 +170,6 @@ class UpdateFedora:
170
170
 
171
171
  positional_args = []
172
172
 
173
- if not self.loadConfig():
174
- return 1
175
-
176
173
  try:
177
174
  parseOptions( self, positional_args, args )
178
175
 
@@ -180,6 +177,9 @@ class UpdateFedora:
180
177
  self.error( '', str(e) )
181
178
  return 1
182
179
 
180
+ if not self.loadConfig():
181
+ return 1
182
+
183
183
  if self.opt_help:
184
184
  print(
185
185
  '''Usage: %(appname)s <options> <group>|<host>|--self...
@@ -223,7 +223,7 @@ class UpdateFedora:
223
223
  all_to_exclude = []
224
224
  if self.opt_exclude:
225
225
  for host in self.opt_exclude().split(','):
226
- all_to_exclude.extend( self.all_groups.get( host, host ) )
226
+ all_to_exclude.extend( self.all_groups.get( host, [host] ) )
227
227
 
228
228
  if self.opt_update_self:
229
229
  self.all_hosts = [None]
@@ -349,7 +349,9 @@ For help:
349
349
  f.write( json_config )
350
350
 
351
351
  else:
352
- self.info( '', 'Using config from %s' % (config_file,) )
352
+ if not self.opt_list_hosts:
353
+ self.info( '', 'Using config from %s' % (config_file,) )
354
+
353
355
  with open(config_file) as f:
354
356
  json_config = f.read()
355
357
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: update-linux
3
- Version: 3.4.0
3
+ Version: 3.4.2
4
4
  Summary: Command to automate the routine updating of packages and system upgrading for Unix systems.
5
5
  Author-email: Barry Scott <barry@barrys-emacs.org>
6
6
  License: Apache-2.0
File without changes
File without changes
File without changes