File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,14 @@ def find_cloudproviders_files(self) -> Iterable[Path]:
149149 self .appdir_install_path / AppDir .CLOUDPROVIDERS_FILES_RELATIVE_LOCATION
150150 )
151151
152+ def find_systemd_files (self ) -> Iterable [Path ]:
153+ files = []
154+
155+ for systemd_path in AppDir .SYSTEMD_RELATIVE_LOCATIONS :
156+ files += self ._find_file_paths_in_directory (self .appdir_install_path / systemd_path )
157+
158+ return files
159+
152160 def copy_data_to_usr (self ):
153161 def create_relative_symlink (src : Path , dst : Path ):
154162 # to calculate the amount of parent directories we need to move up, we can't use relative_to directly
@@ -256,6 +264,9 @@ def deploy_file_as_is(path):
256264 for cloudproviders_file in self .find_cloudproviders_files ():
257265 deploy_file_as_is (cloudproviders_file )
258266
267+ for systemd_file in self .find_systemd_files ():
268+ deploy_file_as_is (systemd_file )
269+
259270 def copy_appdir_contents (self ):
260271 if os .path .exists (self .appdir_install_path ):
261272 shutil .rmtree (self .appdir_install_path )
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ class AppDir:
1616 ICONS_RELATIVE_LOCATION = "usr/share/icons"
1717 MIME_FILES_RELATIVE_LOCATION = "usr/share/mime"
1818 CLOUDPROVIDERS_FILES_RELATIVE_LOCATION = "usr/share/cloud-providers"
19+ SYSTEMD_RELATIVE_LOCATIONS = [
20+ "usr/lib/systemd" ,
21+ ]
1922
2023 def __init__ (self , path : str | os .PathLike ):
2124 self .path = Path (path )
You can’t perform that action at this time.
0 commit comments