dont rely on network

This commit is contained in:
Mehdi Abaakouk
2012-09-13 15:41:50 +02:00
parent dca1d47b6b
commit 7ecf99ee19
4 changed files with 40 additions and 3 deletions

1
debian/docs vendored
View File

@@ -1,2 +1 @@
README.rst
ChangeLog

29
debian/patches/dont-rely-on-network vendored Normal file
View File

@@ -0,0 +1,29 @@
Description: package shoud not depends on network
Author: Mehdi Abaakouk <sileht@sileht.net>
--- python-cinderclient-0.2.orig/cinderclient/openstack/common/setup.py
+++ python-cinderclient-0.2/cinderclient/openstack/common/setup.py
@@ -226,8 +226,8 @@ def get_cmdclass():
"""Builds the ChangeLog and Authors files from VC first."""
def run(self):
- write_git_changelog()
- generate_authors()
+ #write_git_changelog()
+ #generate_authors()
# sdist.sdist is an old style class, can't use super()
sdist.sdist.run(self)
@@ -323,8 +323,8 @@ 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'):
- version = _get_git_post_version()
- write_versioninfo(projectname, version)
- return version
+# if os.path.isdir('.git'):
+# version = _get_git_post_version()
+# write_versioninfo(projectname, version)
+# return version
return open(os.path.join(projectname, 'versioninfo'), 'r').read().strip()

View File

@@ -1 +1,2 @@
fix-pep8-errors.patch
dont-rely-on-network

12
debian/rules vendored
View File

@@ -4,13 +4,21 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@ --with python2
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
override_dh_auto_clean:
echo $(VERSION) > cinderclient/versioninfo
dh_auto_clean
rm -f cinderclient/versioninfo
override_dh_auto_configure:
echo $(VERSION) > cinderclient/versioninfo
dh_auto_configure
%:
dh $@ --with python2
get-orig-source:
uscan --verbose --force-download --rename --destdir=../build-area