Merge lp:~zulcss/nova/nova-no-tarball into lp:~openstack-ubuntu-testing/nova/grizzly

Proposed by Chuck Short
Status: Needs review
Proposed branch: lp:~zulcss/nova/nova-no-tarball
Merge into: lp:~openstack-ubuntu-testing/nova/grizzly
Diff against target: 41 lines (+20/-2)
2 files modified
debian/changelog (+8/-0)
debian/rules (+12/-2)
To merge this branch: bzr merge lp:~zulcss/nova/nova-no-tarball
Reviewer Review Type Date Requested Status
Openstack Ubuntu Testers Pending
Review via email: mp+143128@code.launchpad.net

Description of the change

allows developer to generate a tarball from github locally for package testing.

To post a comment you must log in.
Revision history for this message
Adam Gandelman (gandelman-a) wrote :

It would be cool if the version info (2013.1 and/or 'g3') didn't have to be hard-coded in debian/rules. I believe all of the projects now have a $project/version.py file that can be loaded as a python module and used to get the version + other info about the build, eg:

git clone nova
cd nova/
python -c 'import nova.version; print nova.version.canonical_version_string()

Also, is there some way to override the remote branch location and branch from a local repository if desired? A fresh nova remote clone can take ~10 minutes. I usually have a local branch tracking the remote, it would be nice to optionally use that instead of the remote.

Unmerged revisions

542. By Chuck Short

* New upstream version
* debian/rules: Update get-vcs-source so that it fetches the
  source from github and creates a version tarballs for us.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-01-11 19:07:00 +0000
+++ debian/changelog 2013-01-14 15:47:22 +0000
@@ -1,3 +1,11 @@
1nova (2013.1~g3~20130114.ca4b130-0ubuntu1) UNRELEASED; urgency=low
2
3 * New upstream version
4 * debian/rules: Update get-vcs-source so that it fetches the
5 source from github and creates a version tarballs for us.
6
7 -- Chuck Short <zulcss@ubuntu.com> Mon, 14 Jan 2013 09:16:37 -0600
8
1nova (2013.1~g2-0ubuntu1) raring; urgency=low9nova (2013.1~g2-0ubuntu1) raring; urgency=low
210
3 [ Chuck Short ]11 [ Chuck Short ]
412
=== modified file 'debian/rules'
--- debian/rules 2013-01-10 19:20:37 +0000
+++ debian/rules 2013-01-14 15:47:22 +0000
@@ -36,9 +36,19 @@
36 uscan --verbose --rename --destdir=../build-area36 uscan --verbose --rename --destdir=../build-area
3737
38version_prefix := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')38version_prefix := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
39git_url := git://github.com/openstack/nova.git
40tarball_version := 2013.1
41date := $(shell date +%Y%m%d)
42
39get-vcs-source:43get-vcs-source:
40 wget http://tarballs.openstack.org/nova/nova-master.tar.gz \44 # Grab the latest snapshot of the upstream git repository
41 -O ../nova_$(version_prefix).orig.tar.gz45 [ ! -d nova-snapshot ] || rm -rf nova-snapshot
46 git clone git://github.com/openstack/nova.git nova-snapshot
47 cd nova-snapshot && \
48 commit=`git rev-parse --short HEAD` && \
49 python setup.py sdist && \
50 cp dist/nova-$(tarball_version).tar.gz ../../nova_$(tarball_version)~g3~$(date).$${commit}.orig.tar.gz && \
51 rm -rf nova-snapshot
4252
43override_dh_install:53override_dh_install:
44 dh_install --fail-missing -Xbin/nova-all54 dh_install --fail-missing -Xbin/nova-all

Subscribers

People subscribed via source and target branches