On Mon, 2016-05-16 at 08:53 +0000, Andrey Smirnov wrote:
> Hi John!
>
> The easiest way to do that most probably is to implement the
> following script:
>
> 1. aptly repo create all-versions (create local repo which would hold
> all the versions)
> 2. aptly mirror update ppa-mirror (update mirror, pull any new
> versions)
> 3. aptly repo import all-versions ppa-mirror Name (this would copy
> all the packages from the mirror to local repo, overwrites are no-op)
>
> So over time "all-versions" local repo would accumulate all the
> package versions from mirror "ppa-mirror" even if "ppa-mirror" drops
> older versions.
>
> Hope that helps.
Hi Andrey,
yes, excellent thanks. That appears to work.
For the record, the "repo import" command takes src first, then
destination:
aptly repo import ppa-mirror all-versions Name
my problem now is, I have some snapshots of a mirror with the old
packages in and I want to import them into the repo (since I've long
since already updated my mirror). But "repo import" doesn't seem to
take a mirror snapshot as a source.
I can't find a way to promote a snapshot to a repo or something (at
least not without publishing it to local filesystem and then importing
it again, which seems a bit daft!)
Any thoughts? Any reason I wouldn't be able to patch aptly to allow
imports from snapshots?
Thanks,
John.