rpm: only show xz dependency comment if enabled
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 11 Oct 2011 07:52:17 +0000 (09:52 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 11 Oct 2011 07:55:32 +0000 (09:55 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/rpm/Config.in

index 8d4c6a3baaa5d0aad5e932e89d4e98ff0852c620..a80a5a7975c6fcd06c6716048c456576f32b6dac 100644 (file)
@@ -15,16 +15,16 @@ config BR2_PACKAGE_RPM
 
          http://rpm5.org
 
+if BR2_PACKAGE_RPM
+
 config BR2_PACKAGE_RPM_BZIP2_PAYLOADS
        bool "support for bzip2 payloads"
-       depends on BR2_PACKAGE_RPM
        select BR2_PACKAGE_BZIP2
        help
          Support for bzip2 payloads in RPM.
 
 config BR2_PACKAGE_RPM_XZ_PAYLOADS
        bool "support for xz payloads"
-       depends on BR2_PACKAGE_RPM
        depends on BR2_INSTALL_LIBSTDCPP
        help
          Support for xz payloads in RPM.
@@ -32,4 +32,6 @@ config BR2_PACKAGE_RPM_XZ_PAYLOADS
 comment "xz payload support requires a toolchain with c++ support"
        depends on !BR2_INSTALL_LIBSTDCPP
 
+endif
+