diff options
author | Niels Thykier <niels@thykier.net> | 2016-06-19 06:56:09 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2016-06-19 06:56:09 +0000 |
commit | c1f102537e9e204deed0eab17c10680f3372a2ba (patch) | |
tree | f771000472ed39ebf1ac16dde4f7a556f491351e /dh_installmenu | |
parent | d52c3364f9518e021be31f350204fe8e4a24619b (diff) | |
download | debhelper-c1f102537e9e204deed0eab17c10680f3372a2ba.tar.gz |
dh_installmenu: Stop installing menu files in compat 11
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installmenu')
-rwxr-xr-x | dh_installmenu | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/dh_installmenu b/dh_installmenu index adca9d6e..ba69905e 100755 --- a/dh_installmenu +++ b/dh_installmenu @@ -29,6 +29,9 @@ the maintainer scripts by L<dh_installdeb(1)>. =item debian/I<package>.menu +In compat 11, this file is no longer installed the format has been +deprecated. Please migrate to a desktop file instead. + Debian menu files, installed into usr/share/menu/I<package> in the package build directory. See L<menufile(5)> for its format. @@ -61,16 +64,21 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my $menu_method=pkgfile($package,"menu-method"); if ($menu ne '') { - if (! -d "$tmp/usr/share/menu") { - install_dir("$tmp/usr/share/menu"); - } - install_file($menu,"$tmp/usr/share/menu/$package"); - - # Add the scripts if a menu-method file doesn't exist. - # The scripts for menu-method handle everything these do, too. - if ($menu_method eq "" && ! $dh{NOSCRIPTS}) { - autoscript($package,"postinst","postinst-menu"); - autoscript($package,"postrm","postrm-menu") + if (compat(10)) { + if (! -d "$tmp/usr/share/menu") { + install_dir("$tmp/usr/share/menu"); + } + install_file($menu,"$tmp/usr/share/menu/$package"); + + # Add the scripts if a menu-method file doesn't exist. + # The scripts for menu-method handle everything these do, too. + if ($menu_method eq "" && ! $dh{NOSCRIPTS}) { + autoscript($package,"postinst","postinst-menu"); + autoscript($package,"postrm","postrm-menu") + } + } else { + warning("menu files are *not* installed in compat 11"); + warning("Please remove the menu file"); } } |