Hi, On Sat, Feb 28, 2009 at 11:43:36PM +0100, tcech wrote:
Dne sobota 28 Únor 2009 21:38:51 Brandon Philips napsal(a):
A simple solution to the colons in project names messing up LD_LIBRARY_PATH: http://lists.opensuse.org/archive/opensuse-buildservice/2008-12/msg00166.ht ml
Example use:
$ osc co -c openSUSE:Factory osc A $PWD/osc/debian.changelog A $PWD/osc/debian.tar.gz A $PWD/osc/osc-0.113.tar.gz A $PWD/osc/osc.changes A $PWD/osc/osc.dsc A $PWD/osc/osc.spec A $PWD/osc/ready
Versus without -c
$ osc co openSUSE:Factory osc A $PWD/openSUSE:Factory/osc/debian.changelog A $PWD/openSUSE:Factory/osc/debian.tar.gz A $PWD/openSUSE:Factory/osc/osc-0.113.tar.gz A $PWD/openSUSE:Factory/osc/osc.changes A $PWD/openSUSE:Factory/osc/osc.dsc A $PWD/openSUSE:Factory/osc/osc.spec A $PWD/openSUSE:Factory/osc/ready
Great idea, it not only allows for a simple workaround of the above mentioned colon issue, but it's also a handy alternative way to check out sources without the need for the project directory. In your patch, "Project" is likely a typo and should be "project".
Wouldn't be better to autodetect this behaviour through existence and contents of $PWD/.osc dir?
If $PWD/.osc/_project contains openSUSE:Factory, behave like with -c if not - behave like without -c option.
Hm, that also sounds useful. Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development