Francesco, As discussed off-line, here's a script to somewhat emulate apt's behaviour according to the patch in this bug report, for the sake of testing.
-- Every great idea is worthless without someone to do the work. --Neil Williams
apt-hook-fd-fixture.rb
Description: application/ruby