Cheatography
https://cheatography.com
Workflows for the Command Line Interface of the Build Service
Create or edit a package
|
Check out you(r) home project. |
|
Change into the new directory. |
|
Create new package named ctris. |
|
Change into the new package directory. |
|
Start writing the new spec file. |
|
Download the sources into the directory. (Note: checksum/signature validation should also be done as next step, if any of them are provided.) |
|
Mark files to be added and/or removed from your package directory. |
osc ci -m "First checkin of the ctris package"
|
Submit your files/changes back to the remote build instance. |
Editing or creating a (new) package (meta data) in project $PRJ with the name $PKG can also be done via the command:
osc meta pkg $PRJ $PKG -e
everywhere in the filesystem.
To work with the sources locally, a checkout via
osc co $PRJ $PKG
is needed.
Branch a package
osc branch home:lrupp ctris
|
Creates a branch of the package below your home project. |
osc co home:you:branches:home:lrupp/ctris
|
Check out the branched package. |
cd home:you:branches:home:lrupp/ctris
|
Change into the new directory. |
|
Do changes in spec file (or other files). |
|
Download newer source tarballs (as example). |
|
Do a test build of the package. |
|
Cleanup before submitting, please. ;-) |
|
Add a new package changelog entry. |
osc ci -m "updated package to latest upstream version"
|
Submit your files/changes to the remote build instance. |
|
Check the build results of your changes. |
osc sr -m "Hi! I updated your package to the latest version. Have fun!"
|
Create a submit request against the original project. |
|
Check the current status of your own requests. |
|
|
Building a package
|
Either use the WebUI or edit the project configuration manually and add a build target repository. |
|
Builds a package with the default values (for distribution and architecture) from the file ~/.oscrc. |
osc build Fedora_22 x86_64
|
Builds a package with given repository and architecture. |
|
Shows the build log of a local build (pipe into pager to allow scrolling and searching). |
|
Jump into the chroot environment of the current local build. Might be useful for debugging and/or fixing a package. |
osc ci -m "fixed package build for Fedora"
|
Submit your files/changes to the remote build instance. |
|
Shows the build results of a package or project. |
|
Shows project-wide build results. |
Building a package locally saves time, as the public instances need to find a free schedule for building, while the local machine can start the build immediately. As the build is done in a chroot environment, the OS installation on the local machine will not be affected.
Please remember that the public build instances do neither allow network access nor root permissions during build.
Collaborating on packages
osc request list home:lrupp
|
Check for (open) submit requests against a repository. |
|
Deeply inspect submit request with id $ID (show diff). |
osc request accept $ID -m "Thank you for your contribution :-)"
|
Accept a pending request. |
osc request decline $ID -m "Sorry, but you forgot to add missing files"
|
Decline a pending request. |
osc request supersede -m "He did it better than me - use his submit request please" $ID $SUPERSEDING_ID
|
Superseede a pending submit request with another one. |
osc branch -N -M openSUSE:Backports:SLE-12:Update/glibc7
|
Create a branch pointing to a not yet existing package for a project and package in maintenance mode like the package hub project. |
Working with meta informatoin
|
Show meta informatoin about a project. |
|
Show meta information about a package. |
|
Show information about a user. |
|
Show meta information about a project. |
osc updatepacmetafromspec
|
Update package meta data with metadata taken from spec file. |
|
Created By
https://www.suse.com
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets