summaryrefslogtreecommitdiff
path: root/dh_desktop
diff options
context:
space:
mode:
authorjoey <joey>2004-10-28 16:23:54 +0000
committerjoey <joey>2004-10-28 16:23:54 +0000
commite2c624445167ed72663dde5b4bb98ce501342fc5 (patch)
treea1fe73d8cd030009abb3dfa7a046259c9955ac0c /dh_desktop
parent8984e430ad35066bdd26052348a42d9daaed36d6 (diff)
r1719: releasing version 4.2.22
Diffstat (limited to 'dh_desktop')
-rw-r--r--dh_desktop26
1 files changed, 13 insertions, 13 deletions
diff --git a/dh_desktop b/dh_desktop
index 8baf684..3be468b 100644
--- a/dh_desktop
+++ b/dh_desktop
@@ -25,19 +25,19 @@ fragements to call F<update-desktop-database>.
init();
foreach my $package (@{$dh{DOPACKAGES}}) {
- my $tmp=tmpdir($package);
-
- # Only run if there are .desktop files installed
- if (-d "$tmp/usr/share/applications") {
- # Get a list of the desktop files
- my $desktop_files = `find debian/$package/ -type f -name \*.desktop -printf '%p\n'`;
- # If there actually were some desktop files...
- if ($desktop_files && ! $dh{NOSCRIPTS}) {
- # Don't add a dependency on desktop-file-utils as it may not be needed
- autoscript($package,"postinst","postinst-desktop");
- autoscript($package,"postrm","postrm-desktop");
- }
- }
+ y $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 -printf '%p\n'`;
+ if ($desktop_files && ! $dh{NOSCRIPTS}) {
+ autoscript($package,"postinst","postinst-desktop");
+ autoscript($package,"postrm","postrm-desktop");
+ }
+ }
}
=head1 SEE ALSO