The first time
- Clone the repository:
git clone git+ssh://git.debian.org/git/openstack/glance.git
- Add the upstream remote:
git remote add upstream https://github.com/openstack/glance.git
Uploading a new version
- Fetch from it, so you'll get new tags:
git fetch upstream
- If necessary, checkout the Debian branch you need:
git checkout debian/unstable
- Merge upstream changes in the Debian branch by merging the tag you want, for example 2011.3:
git merge -X theirs 2011.3
- If you need, build the orig.tar.bz2:
git archive --prefix=nova-2011.3/ 2011.3 | xz > ../nova_2011.3.orig.tar.xz
- Update your packaging if needed, commit as you need. Do small, atomic commits.
git commit …
- When finished, tag and sign what you uploaded to Debian, for example version 2011.3-1:
git tag -s debian/2011.3-1 -m 'Debian release 2011.3-1'
- Then you can push everything on Alioth:
git push debian/unstable && git push --tags
- If you wish to do the above in one command, you can do:
- This will add upstream remote, fetch it, create the orig.tar.xz,
and go back to the debian/unstable branch.
Note that if you aren't working on a new upstream release, you should download the orig.tar.xz
from SID, and not used the produced tarball.
If such rules target isn't present in the package you are working on,
please add it (you can take the nova package as example).
Openstack Auto Builder script
Since the build-dependency aren't easy to bootstrap, we use an auto
builder script to build all of the packages of Openstack. To use it do:
It will be then a lot more easy, with all the packages ready and built, and
ready for you to add your contribution to the packaging project. It will also
create a Debian repository out of the build. Note that currently, this
script builds Openstack Folsom (eg: 2012.2), from the debian/experimental
branch on Alioth.
- git clone ssh://git.debian.org/git/openstack/openstack-auto-builder.git
- cd openstack-auto-builder