Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Snapshots:4.0.2
cobbler
fix_hardcoded_libpath_for_websession.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_hardcoded_libpath_for_websession.patch of Package cobbler
From: Jörgen Maas <jorgen.maas@gmail.com> Subject: Python3: Fix to setup.py so that install defaults to /usr/local. References: Patch-Mainline: Git-commit: c1e83f208cc7c7e5943e004c640539fed1440d70 Git-repo: https://github.com/cobbler/cobbler.git Signed-off-by: Thomas Renninger <trenn@suse.com> Index: cobbler-3.0/setup.py =================================================================== --- cobbler-3.0.orig/setup.py 2019-01-15 16:00:16.000000000 +0100 +++ cobbler-3.0/setup.py 2019-01-15 17:16:05.508474760 +0100 @@ -363,10 +363,6 @@ class install(_install): # Run the usual stuff. _install.run(self) - # If --root wasn't specified default to /usr/local - if self.root is None: - self.root = "/usr/local" - # Hand over some directories to the webserver user path = os.path.join(self.install_data, 'share/cobbler/web') try: @@ -377,9 +373,7 @@ class install(_install): if not os.path.abspath(libpath): # The next line only works for absolute libpath raise Exception("libpath is not absolute.") - # libpath is hardcoded in the code everywhere - # therefor cant relocate using self.root - path = os.path.join(libpath, 'webui_sessions') + path = os.path.join(self.root + libpath, 'webui_sessions') try: self.change_owner(path, http_user) except KeyError as e:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor