apt-got builds and supervises a partial (or full) Debian mirror, that is filled on-the-fly by apt-get requests. But there's more! Its modular mirror engine is ready for customized mirroring algos. So you can easily make your own module! (Eg for apt4rpm)