The repo config that start with "olpc_public_rpms_" is downloaded from <a href="http://xs-dev.laptop.org/~dsd/repos">http://xs-dev.laptop.org/~dsd/repos</a>. This configuration is hardcoded in modules/repos/<a href="http://ksmain.50.repos.py">ksmain.50.repos.py</a><br>
If you want to change it, you should change the line that contains<br> url = "<a href="http://xs-dev.laptop.org/~dsd/repos/%s">http://xs-dev.laptop.org/~dsd/repos/%s</a>" % name<br>for <br> url = "<a href="http://localhost/">http://localhost/</a><my_local_repo>/%s" % name<br>
<br><br> Cheers,<br>Esteban.<br><br><div class="gmail_quote">2010/8/3 James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, Aug 03, 2010 at 10:39:21AM +0430, javed khan wrote:<br>
> now i have some question<br>
> I want to create local repository, so which files i should download from<br>
> <a href="http://xs-dev.laptop.org/%7Edsd/repos/" target="_blank">http://xs-dev.laptop.org/~dsd/repos/</a><br>
> there are three folders<br>
> f11<br>
> f11-xo1.5<br>
> f11-xo1<br>
> there are tons of files there.<br>
> now what should i do, download all three folders, or download some spceific<br>
> files from each folder.<br>
> here in Ministry of Education (Afghanistan) we have a shared 1mb internet which<br>
> is the main probelm.<br>
<br>
</div>The files are downloaded by osbuilder.py and kept in cache/ directory<br>
for re-use, so be sure not to delete cache/ directory and therefore each<br>
download should happen only once no matter how many builds you run.<br>
<br>
This might be enough for you without creating a local repository.<br>
<br>
I've done this on a slow rural connection (3mb) and it wasn't as costly<br>
as I had feared. By taking a local backup of cache/ directory for<br>
additional builder instances, I've saved much download time.<br>
<br>
Unfortunately, there still seems to be some downloads of repodata/ that<br>
are not cached, so I can certainly see the need for a local repository.<br>
<br>
If you would like to create a local repository, you could select the<br>
latest version of the .i386.rpm, .i586.rpm or .noarch.rpm files.<br>
<br>
The .src.rpm files are not needed by the builder, so you need not select<br>
them.<br>
<br>
If you are building for XO-1, select files from f11/ and f11-xo1/<br>
directories.<br>
<br>
If you are building for XO-1.5, select files from f11/ and f11-xo1.5/<br>
directories.<br>
<br>
You need the repodata/ directory as well.<br>
<br>
I do not recall how to use a local repository in .ini files, but there's<br>
a modules/repos/README file in olpc-os-builder that may help.<br>
<br>
Regarding slow links where downloads may be broken. There does not<br>
appear to be rsync access to these files, but wget --continue works<br>
fine. The only problem I can see with using wget blindly is that there<br>
are older versions of kernels that are not required. There is little<br>
point downloading them. This command is faulty approximation:<br>
<br>
wget --continue --timestamping --recursive --no-parent \<br>
--reject=src.rpm <a href="http://xs-dev.laptop.org/%7Edsd/repos/" target="_blank">http://xs-dev.laptop.org/~dsd/repos/</a><br>
<br>
See man wget for how to restrict this further.<br>
<br>
If you can document the steps you used to get everything local, please<br>
let me know and I'll add something to the documentation in<br>
olpc-os-builder.<br>
<font color="#888888"><br>
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</div></div></blockquote></div><br>