Refactor _get_entry.
Refactor _get_entry.

It was doing unnecessary logic again, when we had already
made the determination of what to do.  Split it up into
different methods instead.

Signed-off-by: Chris Lalancette <281cd07d7578d97c83271fbbf2faddb83ab3791c@openrobotics.org>

clalancette/pycdlib