X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=rpm%2FSOURCES%2Fopenstack-quantum-newdeps.patch;fp=rpm%2FSOURCES%2Fopenstack-quantum-newdeps.patch;h=0000000000000000000000000000000000000000;hb=2dd62a121c7d2565bd357d59e1e598a825abb966;hp=65ddb460c3b5f0b883b441984cfdb4e16cd431ea;hpb=7858ae023acbcdc5aff394451b1bd694a2ed7fdb;p=openstack-build%2Fneutron-build.git diff --git a/rpm/SOURCES/openstack-quantum-newdeps.patch b/rpm/SOURCES/openstack-quantum-newdeps.patch deleted file mode 100644 index 65ddb460c..000000000 --- a/rpm/SOURCES/openstack-quantum-newdeps.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- quantum-2012.2/quantum/__init__.py.orig 2012-09-25 21:44:21.000000000 +0200 -+++ quantum-2012.2/quantum/__init__.py 2012-10-23 15:11:27.629591625 +0200 -@@ -15,6 +15,36 @@ - # License for the specific language governing permissions and limitations - # under the License. - -+import sys -+import pkg_resources -+ -+# If there is a conflicting non egg module, -+# i.e. an older standard system module installed, -+# then replace it with this requirement -+def replace_dist(requirement): -+ try: -+ return pkg_resources.require(requirement) -+ except pkg_resources.VersionConflict: -+ e = sys.exc_info()[1] -+ dist=e.args[0] -+ req=e.args[1] -+ if dist.key == req.key and not dist.location.endswith('.egg'): -+ del pkg_resources.working_set.by_key[dist.key] -+ # We assume there is no need to adjust sys.path -+ # and the associated pkg_resources.working_set.entries -+ return pkg_resources.require(requirement) -+ -+replace_dist("WebOb >= 1.0") -+replace_dist("SQLAlchemy >= 0.6.3") -+replace_dist("Routes >= 1.12.3") -+ -+replace_dist("PasteDeploy >= 1.5.0") -+# This hack is needed because replace_dist() results in -+# the standard paste module path being at the start of __path__. -+# TODO: See can we get pkg_resources to do the right thing directly -+import paste -+paste.__path__.insert(0, paste.__path__.pop(-1)) -+ - import gettext - -