Subject: | Permit add() method to accept multiple modules and versions |
IMHO, the interface to the add() method is flawed. It only allows you
to associate one module name and one version number with a given tar.gz
file. But any non-trivial tar.gz will contain several modules, each
with potentially different version numbers.
mcpani[1] work around this limitation by calling add() several times for
each module that it finds in the .tar.gz (either by --all-in-meta or by
--discover-packages). But this needlessly copies the .tar.gz file into
the same location for each and every module. And the interaction just
looks wrong.
I propose that the add() method should accept multiple modules and
version numbers (perhaps as a {module => version} hashref). I suspect
this could be wedged in without breaking the current interface.
Wudyathink?