Univention Bugzilla – Attachment 6863 Details for
Bug 38393
System setup copies all setup packages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
system_setup_packages.diff
system_setup_packages.diff (text/plain), 996 bytes, created by
Stefan Gohmann
on 2015-04-30 08:17 CEST
(
hide
)
Description:
system_setup_packages.diff
Filename:
MIME Type:
Creator:
Stefan Gohmann
Created:
2015-04-30 08:17 CEST
Size:
996 bytes
patch
obsolete
>--- /usr/lib/univention-system-setup/scripts/05_role/10role.old 2015-04-30 02:08:51.204177000 -0400 >+++ /usr/lib/univention-system-setup/scripts/05_role/10role 2015-04-30 02:08:56.900177000 -0400 >@@ -32,6 +32,7 @@ > # <http://www.gnu.org/licenses/>. > import shutil > import glob >+import os > > from univention.management.console.modules.setup.setup_script import AptScript, main, _ > >@@ -51,7 +52,11 @@ > # Copy local files into the local cache > # https://forge.univention.org/bugzilla/show_bug.cgi?id=27935 > for filename in glob.glob('/var/cache/univention-system-setup/packages/*.deb'): >- shutil.copy(filename, '/var/cache/apt/archives/') >+ try: >+ basename = os.path.basename(filename) >+ os.link(filename, os.path.join('/var/cache/apt/archives/', basename)) >+ except OSError: >+ shutil.copy(filename, '/var/cache/apt/archives/') > self.reopen_cache() > > current_server_role_package = self.get_package_for_role(self.current_server_role) if self.current_server_role else None
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 38393
: 6863