View | Details | Raw Unified | Return to bug 26249
Collapse All | Expand All

(-)a/branches/ucs-3.0/ucs/base/univention-updater/python/univention-repository-update (-10 / +7 lines)
Lines 167-185 def update_net( options ): Link Here
167
		mirror.run()
167
		mirror.run()
168
	else:
168
	else:
169
		# mirror all future versions
169
		# mirror all future versions
170
		ucr.handler_commit( [ '/etc/apt/mirror.list' ] )
170
		lastupdate = nextupdate = mirror.release_update_available()
171
		nextupdate = mirror.release_update_available()
172
		mirror_run = False
173
		while nextupdate:
171
		while nextupdate:
174
			ucr.handler_set( [ 'repository/mirror/version/end=%s' % nextupdate ] )
172
			lastupdate = nextupdate
173
			nextupdate = mirror.release_update_available(nextupdate)
174
		if lastupdate:
175
			ucr.handler_set(['repository/mirror/version/end=%s' % lastupdate])
175
			# UCR variable repository/mirror/version/end has change - reinit Mirror object
176
			# UCR variable repository/mirror/version/end has change - reinit Mirror object
176
			mirror = UniventionMirror()
177
			mirror = UniventionMirror()
177
			mirror.run()
178
		ucr.handler_commit(['/etc/apt/mirror.list'])
178
			mirror_run = True
179
		mirror.run()
179
			nextupdate = mirror.release_update_available( nextupdate )
180
		if not mirror_run:
181
			# sync only
182
			mirror.run()
183
180
184
	# create .univention_install file
181
	# create .univention_install file
185
	if not os.path.isfile( os.path.join( _mirror_base, '.univention_install' ) ):
182
	if not os.path.isfile( os.path.join( _mirror_base, '.univention_install' ) ):

Return to bug 26249