]> git.ipfire.org Git - thirdparty/systemd.git/commit
Move systemd_installation_has_version() to src/nspawn/
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Apr 2022 09:51:52 +0000 (11:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Apr 2022 16:17:20 +0000 (18:17 +0200)
commitc9394f4f93b9a6baa54f9d1c953035f26dcee253
treeb000d8447b8ede88b953edb783677ebff2936d05
parentbe6447b4838bd3e9fba3c0d6a4237edf8995e436
Move systemd_installation_has_version() to src/nspawn/

This function implements a heuristic that is only used by nspawn. It doesn't
belong in basic. I opted for a new file "nspawn-utils.c", because it seems
likely that we'll need some other new utilities like that in the future.

No functional change.
src/basic/path-util.c
src/basic/path-util.h
src/nspawn/meson.build
src/nspawn/nspawn-util.c [new file with mode: 0644]
src/nspawn/nspawn-util.h [new file with mode: 0644]
src/nspawn/nspawn.c
src/nspawn/test-nspawn-util.c [new file with mode: 0644]
src/test/test-path-util.c