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
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-01-11 19:07:00 +0000
3+++ debian/changelog 2013-01-14 15:47:22 +0000
4@@ -1,3 +1,11 @@
5+nova (2013.1~g3~20130114.ca4b130-0ubuntu1) UNRELEASED; urgency=low
6+
7+ * New upstream version
8+ * debian/rules: Update get-vcs-source so that it fetches the
9+ source from github and creates a version tarballs for us.
10+
11+ -- Chuck Short <zulcss@ubuntu.com> Mon, 14 Jan 2013 09:16:37 -0600
12+
13 nova (2013.1~g2-0ubuntu1) raring; urgency=low
14
15 [ Chuck Short ]
16
17=== modified file 'debian/rules'
18--- debian/rules 2013-01-10 19:20:37 +0000
19+++ debian/rules 2013-01-14 15:47:22 +0000
20@@ -36,9 +36,19 @@
21 uscan --verbose --rename --destdir=../build-area
22
23 version_prefix := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
24+git_url := git://github.com/openstack/nova.git
25+tarball_version := 2013.1
26+date := $(shell date +%Y%m%d)
27+
28 get-vcs-source:
29- wget http://tarballs.openstack.org/nova/nova-master.tar.gz \
30- -O ../nova_$(version_prefix).orig.tar.gz
31+ # Grab the latest snapshot of the upstream git repository
32+ [ ! -d nova-snapshot ] || rm -rf nova-snapshot
33+ git clone git://github.com/openstack/nova.git nova-snapshot
34+ cd nova-snapshot && \
35+ commit=`git rev-parse --short HEAD` && \
36+ python setup.py sdist && \
37+ cp dist/nova-$(tarball_version).tar.gz ../../nova_$(tarball_version)~g3~$(date).$${commit}.orig.tar.gz && \
38+ rm -rf nova-snapshot
39
40 override_dh_install:
41 dh_install --fail-missing -Xbin/nova-all

Subscribers

People subscribed via source and target branches