INNER CODE UNIT · Python
stage_common
XRPLF/rippled · package/build_pkg.py:198
def stage_common(build_dir: Path, dest: Path) -> None:
"""Copy everything both packaging systems consume into dest."""
dest.mkdir(parents=True, exist_ok=True)
for name in STAGED_FROM_BUILD:
shutil.copy2(build_dir / name, dest / name)
for source, name in STAGED_FROM_SRC.items():
shutil.copy2(SRC_DIR / source, dest / name)
def stage_units(dest: Path, *, prefix: str = "") -> None:
"""Copy the systemd, sysusers, tmpfiles and logrotate files into dest.
Each format wants them somewhere else: rpmbuild reads them from SOURCES by
path, debhelper from debian/ by package name -- hence 'prefix', which makes
the copies 'xrpld-assert.xrpld.service' and so on.
"""
for name in STAGED_UNITS: