Here is the "final" version of the patch to import debian media. The
full one is against current git HEAD, while the incremental one should
be applied after the three previous patches (0,1 and 3).
Only the repo finder part is not modified, because I want to have a
look to allow creation and management of debian repositories.
As far as I see, only fixing proper ["tree"] is required for
debian/ubuntu, but I'll not work on that until I'm able to arrange a
second machine to perform real tests.
Javier Palacios
P.S. : Although they was not intended to, the patches for debian did
solve issue 221 (cobbler import overwrites distro and profile
configurations). Within add_entry, if condition 'existing_distro is
not None', instead of printing "modifying existing distro" message, it
raises an exception warning about that, so nothing is rewritten. Just
returning might be goot, and a command line option to force
overwriting might be required, but the exception at least disables
unwanted removals.