Univention Bugzilla – Attachment 5401 Details for
Bug 32398
Use dedicated functions for registering the app in univention-add-app
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use application.register()
file_32398.txt (text/plain), 1.60 KB, created by
Dirk Wiesenthal
on 2013-08-28 12:44:14 CEST
(
hide
)
Description:
Use application.register()
Filename:
MIME Type:
Creator:
Dirk Wiesenthal
Created:
2013-08-28 12:44:14 CEST
Size:
1.60 KB
patch
obsolete
>Index: script/univention-add-app >=================================================================== >--- script/univention-add-app (Revision 43506) >+++ script/univention-add-app (Arbeitskopie) >@@ -83,8 +83,6 @@ > if requested_app.candidate: > function = 'update' > requested_app = requested_app.candidate >- for iapp in requested_app.versions: >- component_manager.remove_app(iapp) > else: > for app in Application.all(): > requested_apps = filter(lambda iapp: iapp.component_id == component_id, app.versions) >@@ -93,7 +91,6 @@ > for iapp in app.versions: > if iapp.is_installed(package_manager): > function = 'update' >- component_manager.remove_app(iapp) > break > if requested_app is None: > sys.stderr.write('App "%s" not found\n' % component_id) >@@ -102,8 +99,7 @@ > sys.stderr.write('App "%s" may not be installed\n' % requested_app.name) > sys.exit(1) > success = True >- component_manager.put_app(requested_app) >- package_manager.update() >+ requested_app.register(component_manager, package_manager) > if options.install_all or options.install_master: > only_master_packages = not options.install_all > requested_app.versions = Application.find(requested_app.id).versions
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 32398
: 5401