]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_desktop: Now a deprecated no-op, since desktop-file-utils uses triggers. Closes...
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 10 Apr 2009 19:37:36 +0000 (15:37 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 10 Apr 2009 19:37:36 +0000 (15:37 -0400)
autoscripts/postinst-desktop [deleted file]
autoscripts/postrm-desktop [deleted file]
debian/changelog
dh
dh_desktop

diff --git a/autoscripts/postinst-desktop b/autoscripts/postinst-desktop
deleted file mode 100644 (file)
index ff6e6a1..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
-       update-desktop-database -q
-fi
diff --git a/autoscripts/postrm-desktop b/autoscripts/postrm-desktop
deleted file mode 100644 (file)
index 38dd191..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
-       update-desktop-database -q
-fi
index 2ad788b6db236883ad0055b21f72548a4f42d0d3..5321bdbabb03150d2ce375ab5dcb3c39d6f935a4 100644 (file)
@@ -1,8 +1,8 @@
 debhelper (7.2.8) UNRELEASED; urgency=low
 
-  * dh_desktop: Avoid using find -execdir as it will fail
-    with certian badly configured PATHs (and is not a benefit
-    in this context anyway). Closes: #521960
+  * dh_desktop: Now a deprecated no-op, since desktop-file-utils
+    uses triggers. Closes: #523474
+    (also Closes: #521960, #407701 as no longer applicable)
 
  -- Joey Hess <joeyh@debian.org>  Tue, 31 Mar 2009 14:07:13 -0400
 
diff --git a/dh b/dh
index f557a6330ef660fc343fa828990c13902b741f41..6ac495a2e7d82822de1a851cf51ba9350449cff5 100755 (executable)
--- a/dh
+++ b/dh
@@ -251,7 +251,6 @@ $sequences{install} = [@{$sequences{build}}, qw{
        dh_installxfonts
        dh_bugfiles
        dh_lintian
-       dh_desktop
        dh_gconf
        dh_icons
        dh_perl
index 7900152353ce22658c73e7e2ae85006f5da5a370..6fb7d0213959a66e2b2f30c143268b39e89aa867 100755 (executable)
@@ -2,7 +2,7 @@
 
 =head1 NAME
 
-dh_desktop - Register .desktop files
+dh_desktop - deprecated no-op
 
 =cut
 
@@ -15,34 +15,14 @@ B<dh_desktop> [S<I<debhelper options>>]
 
 =head1 DESCRIPTION
 
-dh_desktop is a debhelper program that registers .desktop files.
-Currently this program does not handle installation of the files, though it
-may do so at a later date. It takes care of adding maintainer script
-fragments to call F<update-desktop-database>.
-
-Note that since F<update-desktop-database> currently only handles mime
-types, as an optimisation, desktop files not containing MimeType fields
-will currently  be ignored by dh_desktop.
+dh_desktop was a debhelper program that registers .desktop files.
+However, it no longer does anything, and is now deprecated.
 
 =cut
 
 init();
 
-foreach my $package (@{$dh{DOPACKAGES}}) {
-       my $tmp=tmpdir($package);
-
-       if (-d "$tmp/usr/share/applications") {
-               # Get a list of the desktop files that are in
-               # usr/share/applications and thus might need
-               # update-desktop-database be called. Other desktop
-               # files don't.
-               my $desktop_files = `find $tmp/usr/share/applications -type f -name \\*.desktop -exec grep -q "^MimeType" '{}' \\; -printf '%p\n'`;
-               if ($desktop_files && ! $dh{NOSCRIPTS}) {
-                       autoscript($package,"postinst","postinst-desktop");
-                       autoscript($package,"postrm","postrm-desktop");
-               }
-       }
-}
+warning("This program is deprecated, and does nothing anymore.");
 
 =head1 SEE ALSO