From: Thomas Goirand Date: Tue, 20 Nov 2012 16:48:21 +0000 (+0000) Subject: Adds versioninfo files and don't rely on network dot patch X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=472734c6310e2dff6c9425f6140bffad936b9443;p=openstack-build%2Fceilometer-build.git Adds versioninfo files and don't rely on network dot patch Rewritten-From: f78a34575f6a6c74850cde055179c0c8246f1e5f --- diff --git a/trusty/debian/patches/Adds-versioninfo-files.patch b/trusty/debian/patches/Adds-versioninfo-files.patch new file mode 100644 index 0000000..405bf36 --- /dev/null +++ b/trusty/debian/patches/Adds-versioninfo-files.patch @@ -0,0 +1,11 @@ +Description: Adds version info +Author: Thomas Goirand + +--- /dev/null ++++ ceilometer-2013.1~g0+48d8f574e8/versioninfo +@@ -0,0 +1 @@ ++2013.1~g0+48d8f574e8 +--- /dev/null ++++ ceilometer-2013.1~g0+48d8f574e8/ceilometer/versioninfo +@@ -0,0 +1 @@ ++2013.1~g0+48d8f574e8 diff --git a/trusty/debian/patches/dont-rely-on-network.patch b/trusty/debian/patches/dont-rely-on-network.patch new file mode 100644 index 0000000..4fee192 --- /dev/null +++ b/trusty/debian/patches/dont-rely-on-network.patch @@ -0,0 +1,64 @@ +Description: + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . + ceilometer (2013.1~g0+48d8f574e8-1) experimental; urgency=low + . + * Initial release (Closes: #693406). +Author: Thomas Goirand +Bug-Debian: http://bugs.debian.org/693406 + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: http://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +--- ceilometer-2013.1~g0+48d8f574e8.orig/ceilometer/openstack/common/setup.py ++++ ceilometer-2013.1~g0+48d8f574e8/ceilometer/openstack/common/setup.py +@@ -137,7 +137,7 @@ def _get_git_next_version_suffix(branch_ + revno_prefix = "r" + else: + revno_prefix = "" +- _run_shell_command("git fetch origin +refs/meta/*:refs/remotes/meta/*") ++ #_run_shell_command("git fetch origin +refs/meta/*:refs/remotes/meta/*") + milestone_cmd = "git show meta/openstack/release:%s" % branch_name + milestonever = _run_shell_command(milestone_cmd) + if milestonever: +@@ -267,7 +267,7 @@ def get_cmdclass(): + # sdist.sdist is an old style class, can't use super() + sdist.sdist.run(self) + +- cmdclass['sdist'] = LocalSDist ++ #cmdclass['sdist'] = LocalSDist + + # If Sphinx is installed on the box running setup.py, + # enable setup.py to build the documentation, otherwise, +@@ -337,7 +337,7 @@ def get_git_branchname(): + def get_pre_version(projectname, base_version): + """Return a version which is leading up to a version that will + be released in the future.""" +- if os.path.isdir('.git'): ++ if False and os.path.isdir('.git'): + current_tag = _get_git_current_tag() + if current_tag is not None: + version = current_tag +@@ -359,7 +359,7 @@ def get_post_version(projectname): + revision if there is one, or tag plus number of additional revisions + if the current revision has no tag.""" + +- if os.path.isdir('.git'): ++ if False and os.path.isdir('.git'): + version = _get_git_post_version() + write_versioninfo(projectname, version) + return version diff --git a/trusty/debian/patches/series b/trusty/debian/patches/series new file mode 100644 index 0000000..2b525cf --- /dev/null +++ b/trusty/debian/patches/series @@ -0,0 +1,2 @@ +Adds-versioninfo-files.patch +dont-rely-on-network.patch