Hi Fil, The last parameter, <mirrordirectory> of the reconstructmirror option to reapz-download should be an empty directory in which to download the 'sources to be mirrored' into.
It reads which sources are to be mirrored from the manifest.xml. The function softwareheritageget() inside the code downloads the bare tarball from software heritage site. The function is called if 10 attempts to git clone the URL from the git.replicant.us server fails. In that function there is a line for curl to call archive.softwareheritage.org similar to what you have described. After all sources (bare archives) have been downloaded with the reconstructmirror option, we can then run processsources option to process the sources into a replicant source tree ready for building. What the processsources function does, is extract the mirrored tar.gz bare archives, then run a git clone <bare archive directory> <replicant tree directory> to make the bare git directory into a working git directory. It reads the appropriate paths from the manifest.xml so that we are creating the correct directory structure for the replicant source tree. Hope this explains things a bit more. I do my best to describe things though it quite a bit complicated. I am still in the process of testing the reapz-download code to see how well it works and to fix any bugs I may find. I will upload it to publicsite github i9300 repository if it works out OK. Josh On Sat, 11 Jul 2026 07:20:45 +0000 Fil Lupin via Replicant <[email protected]> wrote: > Hi Josh, > thank you for this work. > > In reconstructmirror option, the format of last parameter > mirrordirectory should be > https://archive.softwareheritage.org/browse/origin/directory/?origin_url= > in our case? > > - Fil Lupin. > > On Friday, July 10th, 2026 at 8:35 AM, J05HYYY > <[email protected]> wrote: > > > > > Hi, I'm nearly finished writing a reapz command for downloading the > > sources with --mirror option, falling back to software heritage site > > when git.replicant.us fails. The code is at the link below but it > > has bugs probably. The code also is used to extract from bare > > repository to git cloned url with tags to create the > > android/replicant tree. > > > > http://pastie.org/p/30EldEq0Jj2VfZso5TJaLS/raw > > > > Josh > > > _______________________________________________ > Replicant mailing list > [email protected] > https://lists.osuosl.org/mailman/listinfo/replicant _______________________________________________ Replicant mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/replicant
