Package: selinux-policy-refpolicy-targeted Version: 0.0.20060911-2 Severity: normal
The postinst script of the package seems to generate policies for all available packages, not only the installed ones, and this very slowly. Maybe it is possible to query the installed packages with a script like this, making just one call to dpkg-query and storing the result in a hash: =========================== my %installed; open( my $PACKAGES, "dpkg-query -W |" ) or die("Cannot run 'dpkg-query -W'. $!"); while( my $p = <$PACKAGES> ) { $installed{$1} = $2 if( $p =~ /^(.*)\t(.+)$/ ); } close($PACKAGES) or die("Could not close pipe."); =========================== -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-1-k7 Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set to de_DE) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]