Univention Bugzilla – Attachment 4224 Details for
Bug 26249
univention-repository-update sehr langsam durch errata updates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mirror at once
26249_univention-repository-update.patch (text/plain), 1.37 KB, created by
Philipp Hahn
on 2012-02-24 20:42:19 CET
(
hide
)
Description:
mirror at once
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2012-02-24 20:42:19 CET
Size:
1.37 KB
patch
obsolete
>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' ) ):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26249
: 4224