We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f141c0 commit aec34f8Copy full SHA for aec34f8
1 file changed
ldnp/deb.py
@@ -1,6 +1,7 @@
1
import glob
2
import math
3
import os
4
+import shutil
5
6
from pathlib import Path
7
@@ -72,6 +73,14 @@ def get_size(path: str | os.PathLike):
72
73
with open(control_path, "w") as f:
74
f.write(rendered)
75
76
+ # support pre/post install hooks
77
+ extra_debian_files = os.environ.get("LDNP_DEB_EXTRA_DEBIAN_FILES")
78
+ if extra_debian_files:
79
+ for path in map(Path, extra_debian_files.split(";")):
80
+ target_path = debian_dir / path.name
81
+ logger.info(f"Deploying extra debian file {path} to {target_path}")
82
+ shutil.copy(path, target_path)
83
+
84
def generate_shlibs_file(self):
85
# FIXME: shlibs
86
# # TODO: make shlibs configurable
0 commit comments