[Openstack-devel] get-vcs-source target in debian/rules

Loic Dachary loic at enovance.com
Mon Jun 18 17:40:27 UTC 2012

On 06/18/2012 07:12 PM, Thomas Goirand wrote:
> Hi,
> I found that it's really annoying me to have to manually do the "git add
> remote", "git fetch", etc. just to get upstream code. So, in nova, I've
> added in debian/rules:
> get-vcs-source:
>   git remote add upstream git://github.com/openstack/nova.git || true
>   git fetch upstream
>   git archive --prefix=nova-2012.1/ 2012.1 | xz \
>       >../nova_2012.1.orig.tar.xz
> Is this ok for everyone? Do you think it's a good idea? Should we
> propagate this in all our Openstack packages, and tell about it in
> http://openstack.alioth.debian.org/?
I agree that it would be helpful. In case a package with a debian version number > 1 is to be built, will the .xz have the same checksum as the one uploaded ? If not it should only be created of no file already exists to prevent lossage.

So +1 on this ;-)


More information about the Openstack-devel mailing list