[Vm-dev] Why MC when you copying a package doing too much things?

Colin Putney colin at wiresong.com
Tue Aug 30 20:21:21 UTC 2011


On Tue, Aug 30, 2011 at 11:01 AM, Igor Stasenko <siguctua at gmail.com> wrote:
>
> If you look how MC copies package from remote repository to
> package-cache dir, you will find out ,
> that it:
>  - reads and parses all definitions from source package
>  - and then writes all these definitions into a new file
>
> while instead it could just simply copy the contents of existing file
> to the directory and that's it.

In the general case, that's what you need to do, because not all
repositories store versions in files. Obviously this could be
optimized for file-repository-to-file-repository copies; nobody has
done so yet.


More information about the Vm-dev mailing list