debian/rules: fix the build on Ubuntu derivatives when building only the arch-depende...
authorSteve Langasek <vorlon@debian.org>
Wed, 15 May 2013 19:34:25 +0000 (19:34 +0000)
committerSteve Langasek <vorlon@debian.org>
Wed, 15 May 2013 19:34:25 +0000 (19:34 +0000)
debian/changelog
debian/rules

index 2d77d308a08bd5ff4f2fa50a572fe077de02593e..db182eafdaddabd4c43fd9c7576e505691f0a550 100644 (file)
@@ -6,6 +6,8 @@ lsb (4.1+Debian11) UNRELEASED; urgency=low
     Ubuntu logging functions.
   * Correct duplicate reference to log_action_end_msg_post in
     debian/lsb-base.README.Debian.
+  * debian/rules: fix the build on Ubuntu derivatives when building only the
+    arch-dependent packages.
 
  -- Steve Langasek <vorlon@debian.org>  Wed, 15 May 2013 04:53:22 -0500
 
index b5690ddb07d18e054b0a927cc06af50adeba29ac..b085272cb99afda4b843b5456208fd92d424acd3 100755 (executable)
@@ -64,7 +64,9 @@ override_dh_python2:
 override_dh_install:
        dh_install
 ifeq ($(derives_from_ubuntu),yes)
+ifneq (,$(findstring lsb-base, $(shell dh_listpackages)))
        cp -p init-functions.d/50-ubuntu-logging debian/lsb-base/lib/lsb/init-functions.d/
+endif
 
 override_dh_installdeb:
        cp debian/lsb-base.maintscript.Ubuntu debian/lsb-base.maintscript