The -p/--prefer-pkgs is a much stronger statement than just: get the
packages from this location. It says uses this file to fulfill any
requires for capabilities this file provides. (Scanning the files for
Provides and Requires is why it takes so long.) If you just what the
NFS space to act as a cache, then just symlink the specific file into
your package-cache location that's defined in ~/.oscrc.
If you want to speed up the scanning of NFS, there's a patch I made that
understands the XML files created by createrepo that you could use to
scan the NFS space with createrepo (on the NFS server) and then my patch
will find the repodata directory and consume the data from the XML
instead of scanning each rpm file. I know Adrian accepted the patch,
but I don't know if the osc you are using has the change in it.
On Mon, 2010-03-08 at 12:52 -0600, Jon Nelson wrote:
is there a way to instruct osc to try a local
(partial) http mirror
for packages necessary for building?
For example, let's say I type "osc build" and the build needs insserv.
Furthermore, let's say I have insserv-1.13-2.2.x86_64.rpm in a local
http mirror (also available via NFS).
I'd like the build process to know this and use the local copy.
I tried using the -p option with the NFS-mounted mirror, but that
appears to scan the /entire thing/ *before* asking for packages, and
that takes a long time.
What are my options here?
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org