On Wed, Aug 22, 2007 at 01:56:00AM +0200, Pascal Bleser wrote:
OK, a last one ;) In case Peter didn't read his away log on IRC, here's a patch to be able
I read it ;)
to tell osc to use another config file using the environment variable OSC_CONFIG: http://linux01.gwdg.de/~pbleser/files/osc-config-env.patch
The idea is to be able to use both the OBS on build.opensuse.org and a local OBS, using the following little trick: - ---8<----------------------------------------------------------------- cat<<'EOF' >>~/.profile function lobs { OSC_CONFIG=~/.oscrc.local osc "$@"; } EOF - ---8<----------------------------------------------------------------- (use "obs ..." for opensuse.org, and "lobs ..." for the local OBS)
To achieve that, you don't necessarily need a different config; there is -A URL, --apisrv=URL specify URL to access API server at Thus, you could use a shell alias like this: alias lobs='osc -A http://localhost:6362' (When osc has been used to check out sources with that, it memorizes the used api, so -A is not necessary later to work with the working copy. Also note, osc can do a "copypac" from one api to another.) The patch is a good idea nevertheless. I'd like to have a commandline option for that, too. It can be a little more obvious I think. Thanks for the patch! Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development