update-linux 3.5.1__tar.gz → 3.5.3__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.5.1
3
+ Version: 3.5.3
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.5.1'
12
+ VERSION = '3.5.3'
13
13
 
14
14
  default_json_config_template = u'''{
15
15
  "group":
@@ -257,6 +257,8 @@ For help:
257
257
  if host in all_to_exclude:
258
258
  continue
259
259
 
260
+ self.flushDns()
261
+
260
262
  os_plugin_type, os_id, os_version = self.detectOperatingSystem( host )
261
263
  if os_plugin_type is None:
262
264
  if os_id is not None:
@@ -267,7 +269,6 @@ For help:
267
269
 
268
270
  plugin = os_id_to_plugin[ os_plugin_type ]( self )
269
271
 
270
- self.flushDns()
271
272
  if self.opt_check:
272
273
  plugin.check( host,
273
274
  check_log_name=self.logdir / ('check-update-%s-%s.log' % (host or 'localhost', self.ts)) )
@@ -383,7 +384,6 @@ For help:
383
384
  cmd = ['killall', '-HUP', 'mDNSResponder']
384
385
  self.runAndLog( None, cmd, log=False )
385
386
 
386
-
387
387
  def detectOperatingSystem( self, host ):
388
388
  if host is not None:
389
389
  rc = ssh_wait( host, wait=False, log_fn=None )
@@ -671,30 +671,32 @@ class UpdatePluginFedora:
671
671
  self.app.checkServices( host, status_log_name )
672
672
 
673
673
  def systemUpgrade( self, host, target_release, upgrade_log_name ):
674
- current_release = self.releaseInfo( host )
675
- if current_release >= target_release:
676
- self.app.info( host, 'Already running release %d' % (current_release,) )
677
- return
674
+ while True:
675
+ current_release = self.releaseInfo( host )
676
+ if current_release >= target_release:
677
+ self.app.info( host, 'Already running release %d' % (current_release,) )
678
+ return
678
679
 
679
- self.app.info( host, 'Currently release %d' % (current_release,) )
680
+ self.app.info( host, 'Currently release %d' % (current_release,) )
680
681
 
681
- # only update by one release at a time
682
- next_release = current_release + 1
682
+ # only update by one release at a time
683
+ next_release = current_release + 1
683
684
 
684
- cmd = ['dnf', 'system-upgrade', 'download', '--releasever=%d' % (next_release,), '--assumeyes']
685
- rc, stdout = self.app.runAndLog( host, cmd )
686
- self.app.writeLines( upgrade_log_name, stdout )
685
+ cmd = ['dnf', 'system-upgrade', 'download', '--releasever=%d' % (next_release,), '--assumeyes']
686
+ rc, stdout = self.app.runAndLog( host, cmd )
687
+ self.app.writeLines( upgrade_log_name, stdout )
687
688
 
688
- if rc != 0:
689
- self.app.error( host, 'Failure to download release %d' % (next_release,) )
690
- return
689
+ if rc != 0:
690
+ self.app.error( host, 'Failure to download release %d' % (next_release,) )
691
+ return
691
692
 
692
- self.app.info( host, 'Rebooting to install system-upgrade' )
693
- # upgrades of lots of packages can be slow - wait for 45 minutes
694
- if self.app.reboot( host, ['dnf', 'system-upgrade', 'reboot', '--assumeyes'], wait_limit=45*60 ):
695
- self.app.checkServices( host, upgrade_log_name )
693
+ self.app.info( host, 'Rebooting to install system-upgrade' )
694
+ # upgrades of lots of packages can be slow - wait for 45 minutes
695
+ if self.app.reboot( host, ['dnf', 'system-upgrade', 'reboot', '--assumeyes'], wait_limit=45*60 ):
696
+ if not self.app.checkServices( host, upgrade_log_name ):
697
+ return
696
698
 
697
- self.app.info( host, 'Now running release %d' % (self.releaseInfo( host ),) )
699
+ self.app.info( host, 'Now running release %d' % (self.releaseInfo( host ),) )
698
700
 
699
701
  def releaseInfo( self, host ):
700
702
  cmd = ['cat', '/etc/system-release-cpe']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: update-linux
3
- Version: 3.5.1
3
+ Version: 3.5.3
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