[opensuse-buildservice] osc: how to checkout package into current directory?
Hi, Is it possible to checkout package into already existing or current directory without creating PACKAGE directory? Let me explain why I need it. My package directory structure looks like this: package src/ rpm/ .... Quite common project structure, I'd say. It's under git control. What I want is to be able to use osc when in rpm/ subdirectory. For that I need osc to be able to create package structure right in the current directory, without creating PACKAGE subdirectory. So, the workflow of creating and working with packaging would be something like this: git clone git_url_of_mypackage create empty package mypackage in WebUI or better using osc mkpac, but that's another story cd mypackage mkdir rpm git archive --prefix mypackage-version/ HEAD | gzip > rpm/mypackage-version.tar.gz cd rpm osc co -o. myproject mypackage vi mypackage.spec git add mypackage.spec git commit -m 'Added spec' osc add mypackage.spec mypackage-version.tar.gz osc commit ... .... I'm able to work around it by moving .osc directory from rpm/PACKAGE/.osc to rpm/. However, from my point of view it would be better to have one more option for osc to do it. What do you think? If it doesn't sound bad or totally incorrect would you accept patch implementing it? Regards, -- Ed --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tue, 2011-09-27 at 10:25 +0000, Bartosh, Eduard wrote:
I'm able to work around it by moving .osc directory from rpm/PACKAGE/.osc to rpm/. However, from my point of view it would be better to have one more option for osc to do it.
What do you think? If it doesn't sound bad or totally incorrect would you accept patch implementing it?
You should be able to 'workaround' this limitation: mkdir rpm cd rpm osc init PRJ PKG osc update => This will / should checkout the package from PRJ PKG into the rpm folder. (In my test I needed a osc repairwc between init and update...) Dominique -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
You should be able to 'workaround' this limitation:
mkdir rpm cd rpm osc init PRJ PKG osc update
Thanks for the tip. It's not always works as expected though. For example if package already has some files in it osc repairwc downloads all package files into .osc directory. Anyway it's just one more workaround. Any other suggestions? Regards, Ed -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Bartosh, Eduard
-
Dimstar / Dominique Leuenberger
-
Ed Bartosh