X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_installmime;h=d44c9150d7d50df4ce2b1d0645f354be33a864e5;hb=ce2b461ee2784fd5fbaae991d6846c7f1d69c73a;hp=0ac46c755209368be8a475c6614c191f0e3e42eb;hpb=0952ac2e9995da8abe149f3e42b3b8d9d2797112;p=debhelper.git diff --git a/dh_installmime b/dh_installmime index 0ac46c7..d44c915 100755 --- a/dh_installmime +++ b/dh_installmime @@ -11,17 +11,13 @@ use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS -B [S>] [B<-n>] +B [S>] =head1 DESCRIPTION B is a debhelper program that is responsible for installing mime files into package build directories. -It also automatically generates the F and F commands needed to -interface with the debian B and B packages. These -commands are inserted into the maintainer scripts by L. - =head1 FILES =over 4 @@ -38,22 +34,6 @@ directory. =back -=head1 OPTIONS - -=over 4 - -=item B<-n>, B<--noscripts> - -Do not modify F/F scripts. - -=back - -=head1 NOTES - -Note that this command is not idempotent. L should be called -between invocations of this command. Otherwise, it may cause multiple -instances of the same text to be added to maintainer scripts. - =cut init(); @@ -68,12 +48,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } doit("install","-p","-m644",$mime,"$tmp/usr/lib/mime/packages/$package"); } - # Check wether we have to call update-mime (either upstream already - # installs a MIME information file or Debian provides one) - if ((! $dh{NOSCRIPTS}) && (-d "$tmp/usr/lib/mime/packages")) { - autoscript($package,"postinst","postinst-mime"); - autoscript($package,"postrm","postrm-mime") - } my $sharedmimeinfo=pkgfile($package,"sharedmimeinfo"); @@ -83,13 +57,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } doit("install", "-p", "-m644", $sharedmimeinfo, "$tmp/usr/share/mime/packages/$package.xml"); } - # check wether we have to call update-mime-database (either upstream - # already installs a shared MIME information file or Debian provides - # one) - if ((! $dh{NOSCRIPTS}) && (-d "$tmp/usr/share/mime/packages")) { - autoscript($package, "postinst", "postinst-sharedmimeinfo"); - autoscript($package, "postrm", "postrm-sharedmimeinfo") - } } =head1 SEE ALSO