dont rely on network
This commit is contained in:
1
debian/docs
vendored
1
debian/docs
vendored
@@ -1,2 +1 @@
|
||||
README.rst
|
||||
ChangeLog
|
||||
|
||||
29
debian/patches/dont-rely-on-network
vendored
Normal file
29
debian/patches/dont-rely-on-network
vendored
Normal 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()
|
||||
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@@ -1 +1,2 @@
|
||||
fix-pep8-errors.patch
|
||||
dont-rely-on-network
|
||||
|
||||
12
debian/rules
vendored
12
debian/rules
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user