4fee192053a8a7a8be612be12be1a5a741a1b223
[openstack-build/ceilometer-build.git] / xenial / debian / patches / dont-rely-on-network.patch
1 Description: <short summary of the patch>
2  TODO: Put a short summary on the line above and replace this paragraph
3  with a longer explanation of this change. Complete the meta-information
4  with other relevant fields (see below for details). To make it easier, the
5  information below has been extracted from the changelog. Adjust it or drop
6  it.
7  .
8  ceilometer (2013.1~g0+48d8f574e8-1) experimental; urgency=low
9  .
10    * Initial release (Closes: #693406).
11 Author: Thomas Goirand <zigo@debian.org>
12 Bug-Debian: http://bugs.debian.org/693406
13
14 ---
15 The information above should follow the Patch Tagging Guidelines, please
16 checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
17 are templates for supplementary fields that you might want to add:
18
19 Origin: <vendor|upstream|other>, <url of original patch>
20 Bug: <url in upstream bugtracker>
21 Bug-Debian: http://bugs.debian.org/<bugnumber>
22 Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
23 Forwarded: <no|not-needed|url proving that it has been forwarded>
24 Reviewed-By: <name and email of someone who approved the patch>
25 Last-Update: <YYYY-MM-DD>
26
27 --- ceilometer-2013.1~g0+48d8f574e8.orig/ceilometer/openstack/common/setup.py
28 +++ ceilometer-2013.1~g0+48d8f574e8/ceilometer/openstack/common/setup.py
29 @@ -137,7 +137,7 @@ def _get_git_next_version_suffix(branch_
30          revno_prefix = "r"
31      else:
32          revno_prefix = ""
33 -    _run_shell_command("git fetch origin +refs/meta/*:refs/remotes/meta/*")
34 +    #_run_shell_command("git fetch origin +refs/meta/*:refs/remotes/meta/*")
35      milestone_cmd = "git show meta/openstack/release:%s" % branch_name
36      milestonever = _run_shell_command(milestone_cmd)
37      if milestonever:
38 @@ -267,7 +267,7 @@ def get_cmdclass():
39              # sdist.sdist is an old style class, can't use super()
40              sdist.sdist.run(self)
41  
42 -    cmdclass['sdist'] = LocalSDist
43 +    #cmdclass['sdist'] = LocalSDist
44  
45      # If Sphinx is installed on the box running setup.py,
46      # enable setup.py to build the documentation, otherwise,
47 @@ -337,7 +337,7 @@ def get_git_branchname():
48  def get_pre_version(projectname, base_version):
49      """Return a version which is leading up to a version that will
50         be released in the future."""
51 -    if os.path.isdir('.git'):
52 +    if False and os.path.isdir('.git'):
53          current_tag = _get_git_current_tag()
54          if current_tag is not None:
55              version = current_tag
56 @@ -359,7 +359,7 @@ def get_post_version(projectname):
57      revision if there is one, or tag plus number of additional revisions
58      if the current revision has no tag."""
59  
60 -    if os.path.isdir('.git'):
61 +    if False and os.path.isdir('.git'):
62          version = _get_git_post_version()
63          write_versioninfo(projectname, version)
64          return version