diff --git a/branches/ucs-3.0/ucs/base/univention-updater/python/univention-repository-update b/branches/ucs-3.0/ucs/base/univention-updater/python/univention-repository-update index 0fdc106..91168c1 100755 --- a/branches/ucs-3.0/ucs/base/univention-updater/python/univention-repository-update +++ b/branches/ucs-3.0/ucs/base/univention-updater/python/univention-repository-update @@ -167,19 +167,16 @@ def update_net( options ): mirror.run() else: # mirror all future versions - ucr.handler_commit( [ '/etc/apt/mirror.list' ] ) - nextupdate = mirror.release_update_available() - mirror_run = False + lastupdate = nextupdate = mirror.release_update_available() while nextupdate: - ucr.handler_set( [ 'repository/mirror/version/end=%s' % nextupdate ] ) + lastupdate = nextupdate + nextupdate = mirror.release_update_available(nextupdate) + if lastupdate: + ucr.handler_set(['repository/mirror/version/end=%s' % lastupdate]) # UCR variable repository/mirror/version/end has change - reinit Mirror object mirror = UniventionMirror() - mirror.run() - mirror_run = True - nextupdate = mirror.release_update_available( nextupdate ) - if not mirror_run: - # sync only - mirror.run() + ucr.handler_commit(['/etc/apt/mirror.list']) + mirror.run() # create .univention_install file if not os.path.isfile( os.path.join( _mirror_base, '.univention_install' ) ):