diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-11-16 19:51:10 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-11-16 19:51:10 +0300 |
commit | e997d092bb47ed71c50d3454db99ff59648abe76 (patch) | |
tree | 9d660a592e31815f45651e6f4b46dd7d8a9a2d3d | |
parent | 1db0a96eb28faade39d4cef422e32f794291944e (diff) | |
download | debhelper-e997d092bb47ed71c50d3454db99ff59648abe76.tar.gz |
Make dh_installsystemd a no-op on non-linux
-rwxr-xr-x | dh_installsystemd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dh_installsystemd b/dh_installsystemd index 48a0e787..691eeee7 100755 --- a/dh_installsystemd +++ b/dh_installsystemd @@ -12,6 +12,13 @@ use Debian::Debhelper::Dh_Lib; use File::Find; use Cwd qw(getcwd abs_path); +my $deb_host_arch_os = dpkg_architecture_value('DEB_HOST_ARCH_OS'); +if ($deb_host_arch_os ne 'linux') +{ + warning("systemd is unsupported on $deb_host_arch_os, doing nothing"); + exit(0); +} + our $VERSION = DH_BUILTIN_VERSION; =head1 SYNOPSIS |