From f2c0117a7d1585401dea0cad7a23b59c3b311681 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 31 Mar 2009 14:09:08 -0400 Subject: [PATCH] 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 --- debian/changelog | 8 ++++++++ dh_desktop | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index bd07797..2ad788b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +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 + + -- Joey Hess Tue, 31 Mar 2009 14:07:13 -0400 + debhelper (7.2.7) unstable; urgency=low * Fix calling the same helper for separate packages in the override of dh diff --git a/dh_desktop b/dh_desktop index 1b32fc9..7900152 100755 --- a/dh_desktop +++ b/dh_desktop @@ -36,7 +36,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # 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 -execdir grep -q "^MimeType" '{}' \\; -printf '%p\n'`; + 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"); -- 2.39.5