[opensuse-buildservice] What am I doing wrong creating a new package?
Hi, I've never seemed to get this right, I either create a new package directory under my home:plater directory then download the packages src tarball or another distros src rpm and create or in the case of src rpm fix the spec file and then create a changes file with osc vc. I create the package in my home project in the build service using osc meta pkg -e and then use osc init, osc ar and osc ci to upload the files. This used to work once upon a time but lately I have to manually add the files to my build service package, delete the local package directory I've created and then check it out with osc co. Is there no easy way to create the package on my local machine and then upload to my home project? Thanks Dave P -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi,
On Sunday, 14 February, 2016 at 04:57 PM, Dave Plater <dplater.list@gmail.com> wrote: Hi, I've never seemed to get this right, I either create a new package directory under my home:plater directory then download the packages src tarball or another distros src rpm and create or in the case of src rpm fix the spec file and then create a changes file with osc vc. I create the package in my home project in the build service using osc meta pkg -e and then use osc init, osc ar and osc ci to upload the files.
I don't think you need to create a package first using "osc meta pkg".
This used to work once upon a time but lately I have to manually add the files to my build service package, delete the local package directory I've created and then check it out with osc co. Is there no easy way to create the package on my local machine and then upload to my home project?
$ osc mkpac <package> $ cd <package> $ cp /path/to/{tarball,spec} . # or "osc importsrcpkg /path/to/src.rpm" for your other usage $ osc vc $ cd .. $ osc ci <package> I've used the above step on my local OBS 2.5 and believe this should continue to work on build.opensuse.org as well. Hope this helps, Srinidhi. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Sun, 14 Feb 2016 13:27:01 +0200 Dave Plater wrote:
I create the package in my home project in the build service using osc meta pkg -e and then use osc init, osc ar and osc ci to upload the files. This used to work once upon a time but lately I have to manually add the files to my build service package, delete the local package directory I've created and then check it out with osc co. Is there no easy way to create the package on my local machine and then upload to my home project?
In your home project: osc mkpac pkgname cd pkgname osc ci -m "new package" ... ... osc vc osc ar osc ci -m "new package" -- WBR Kyrill
On 14/02/2016 13:54, Kyrill Detinov wrote:
On Sun, 14 Feb 2016 13:27:01 +0200 Dave Plater wrote:
I create the package in my home project in the build service using osc meta pkg -e and then use osc init, osc ar and osc ci to upload the files. This used to work once upon a time but lately I have to manually add the files to my build service package, delete the local package directory I've created and then check it out with osc co. Is there no easy way to create the package on my local machine and then upload to my home project?
In your home project:
osc mkpac pkgname cd pkgname osc ci -m "new package" ... ... osc vc osc ar osc ci -m "new package"
Thanks, I knew I was being stupid somewhere. I suppose osc meta pkg "new package" -e will work just as well an mkpac? It allows me to make the description and url. Thanks Dave P -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Dave Plater
-
Kyrill Detinov
-
Srinidhi B