Univention Bugzilla – Attachment 9744 Details for
Bug 48151
Check if univention-debmirror is already installed in univention-repository-create
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for univention-repository-create to check if univention-debmirror is installed before trying to install it
univention-repository-create_check_if_univention-debmirror_is_installed.patch (text/plain), 1.27 KB, created by
Valentin Heidelberger
on 2018-11-15 10:26:12 CET
(
hide
)
Description:
Patch for univention-repository-create to check if univention-debmirror is installed before trying to install it
Filename:
MIME Type:
Creator:
Valentin Heidelberger
Created:
2018-11-15 10:26:12 CET
Size:
1.27 KB
patch
obsolete
>--- ./base/univention-updater/python/univention-repository-create.orig 2018-11-14 15:56:59.446220332 +0100 >+++ ./base/univention-updater/python/univention-repository-create 2018-11-15 10:23:24.174253283 +0100 >@@ -66,18 +66,23 @@ > print >> sys.stderr, 'Aborted.' > sys.exit(1) > >- # install univention-debmirror >- print 'Installing univention-debmirror' >- ret = subprocess.call(['univention-install', '--yes', 'univention-debmirror']) >- if ret != 0: >- print >> sys.stderr, 'Error: Failed to install univention-debmirror' >- sys.exit(1) >- >+ # check whether univention-debmirror is installed and install it if needed > ret, msg = urepo.is_debmirror_installed() > if not ret: > print >> sys.stderr, msg > sys.exit(1) > >+ if ret != True: >+ print 'Installing univention-debmirror' >+ ret = subprocess.call(['univention-install', '--yes', 'univention-debmirror']) >+ if ret != 0: >+ print >> sys.stderr, 'Error: Failed to install univention-debmirror' >+ sys.exit(1) >+ ret, msg = urepo.is_debmirror_installed() >+ if not ret: >+ print >> sys.stderr, msg >+ sys.exit(1) >+ > > def prepare(options): > """ Set local/repository and create directory structure """
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 48151
: 9744