severity 388744 wishlist
thanks

On Fri, 22 Sep 2006 12:27:29 +0200, Alexander Buerger
<[EMAIL PROTECTED]> said:  

> The postinst script of the package seems to generate policies for
> all available packages, not only the installed ones,

        Why do you say that?  The code seems to show that only
 installed packages have the corresponding policies loaded. The policy
 on my virtual machines seems different from the policy on my
 desktop. 

> 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.");
> ===========================

        This means going through every single installed package, even
 the ones we do not care specially for, as opposed to looking for
 packages corresponding to policy module packages.

        It is not clear if this is going to make a perceptible
 difference; and, anyway, policy package selection is a minor part of
 the time taken; actually loading the policy modules is the most time
 consuming part.

        manoj
-- 
Everyone was born right-handed.  Only the greatest overcome it.
Manoj Srivastava   <[EMAIL PROTECTED]>  <http://www.datasync.com/%7Esrivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to