Merging Eridius' https://trac.macports.org/changeset/25980: Wrap dportsearch inner block in a try-finally clause to ensure PortIndex file is always closed even if an error occurs.
Merging Eridius' https://trac.macports.org/changeset/25980: Wrap dportsearch inner block in a try-finally clause to ensure PortIndex file is always closed even if an error occurs.

git-svn-id: dc463f922b716f8a7bf91846309830e794c23801@26128 d073be05-634f-4543-b044-5fe20cf6d1d6

macports/macports-base,neverpanic/macports-base,neverpanic/macports-base,danchr/macports-base,macports/macports-base,danchr/macports-base