diff options
author | Ernie Hershey <ernie.hershey@10gen.com> | 2013-10-02 17:34:41 -0400 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2013-10-04 13:25:27 -0400 |
commit | fc780bfec97713119dd16c4996cd0c484de4ab71 (patch) | |
tree | 26e47ee2c0099b97a10b7a6bc51e0c21c90d5281 /buildscripts/packager-enterprise.py | |
parent | c3a1079ef7518536e7ee0014f510b392d4daea4a (diff) | |
download | mongo-fc780bfec97713119dd16c4996cd0c484de4ab71.tar.gz |
SERVER-11008 Add full conflicting package name list
Diffstat (limited to 'buildscripts/packager-enterprise.py')
-rwxr-xr-x | buildscripts/packager-enterprise.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/buildscripts/packager-enterprise.py b/buildscripts/packager-enterprise.py index de28966d348..3106aa162b2 100755 --- a/buildscripts/packager-enterprise.py +++ b/buildscripts/packager-enterprise.py @@ -539,7 +539,7 @@ Standards-Version: 3.8.0 Homepage: http://www.mongodb.org Package: @@PACKAGE_BASENAME@@ -Conflicts: @@PACKAGE_CONFLICTS@@ +Conflicts: mongo-10gen, mongo-10gen-enterprise, mongo-10gen-enterprise-server, mongo-10gen-server, mongo-10gen-unstable, mongo-10gen-unstable-enterprise, mongo-10gen-unstable-enterprise-mongos, mongo-10gen-unstable-enterprise-server, mongo-10gen-unstable-enterprise-shell, mongo-10gen-unstable-enterprise-tools, mongo-10gen-unstable-mongos, mongo-10gen-unstable-server, mongo-10gen-unstable-shell, mongo-10gen-unstable-tools, mongo18-10gen, mongo18-10gen-server, mongo20-10gen, mongo20-10gen-server, mongodb, mongodb-10gen, mongodb-10gen-enterprise, mongodb-10gen-unstable, mongodb-10gen-unstable-enterprise, mongodb-10gen-unstable-enterprise-mongos, mongodb-10gen-unstable-enterprise-server, mongodb-10gen-unstable-enterprise-shell, mongodb-10gen-unstable-enterprise-tools, mongodb-10gen-unstable-mongos, mongodb-10gen-unstable-server, mongodb-10gen-unstable-shell, mongodb-10gen-unstable-tools, mongodb-enterprise, mongodb-enterprise-mongos, mongodb-enterprise-server, mongodb-enterprise-shell, mongodb-enterprise-tools, mongodb-nightly, mongodb-org, mongodb-org-mongos, mongodb-org-server, mongodb-org-shell, mongodb-org-tools, mongodb-stable, mongodb18-10gen, mongodb20-10gen, mongodb-org-unstable, mongodb-org-unstable-mongos, mongodb-org-unstable-server, mongodb-org-unstable-shell, mongodb-org-unstable-tools Architecture: any Depends: libc6 (>= 2.3.2), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), libsnmp15, libgsasl7, libssl1.0.0 Description: An object/document-oriented database @@ -561,9 +561,6 @@ Description: An object/document-oriented database functionality are the goals for the project. """ s=re.sub("@@PACKAGE_BASENAME@@", "mongodb%s" % spec.suffix(), s) - conflict_suffixes=["", "-stable", "-unstable", "-nightly", "-10gen", "-10gen-unstable", "-10gen-enterprise", "-org"] - conflict_suffixes = [suff for suff in conflict_suffixes if suff != spec.suffix()] - s=re.sub("@@PACKAGE_CONFLICTS@@", ", ".join(["mongodb"+suffix for suffix in conflict_suffixes] + [ "mongodb18"+suffix for suffix in conflict_suffixes] + ["mongodb20"+suffix for suffix in conflict_suffixes]), s) f=open(path, 'w') try: @@ -782,7 +779,7 @@ def write_rpm_macros_file(path, topdir): def write_rpm_spec_file(path, spec): s="""Name: @@PACKAGE_BASENAME@@ -Conflicts: @@PACKAGE_CONFLICTS@@ +Conflicts: mongo-10gen, mongo-10gen-enterprise, mongo-10gen-enterprise-server, mongo-10gen-server, mongo-10gen-unstable, mongo-10gen-unstable-enterprise, mongo-10gen-unstable-enterprise-mongos, mongo-10gen-unstable-enterprise-server, mongo-10gen-unstable-enterprise-shell, mongo-10gen-unstable-enterprise-tools, mongo-10gen-unstable-mongos, mongo-10gen-unstable-server, mongo-10gen-unstable-shell, mongo-10gen-unstable-tools, mongo18-10gen, mongo18-10gen-server, mongo20-10gen, mongo20-10gen-server, mongodb, mongodb-10gen, mongodb-10gen-enterprise, mongodb-10gen-unstable, mongodb-10gen-unstable-enterprise, mongodb-10gen-unstable-enterprise-mongos, mongodb-10gen-unstable-enterprise-server, mongodb-10gen-unstable-enterprise-shell, mongodb-10gen-unstable-enterprise-tools, mongodb-10gen-unstable-mongos, mongodb-10gen-unstable-server, mongodb-10gen-unstable-shell, mongodb-10gen-unstable-tools, mongodb-enterprise, mongodb-enterprise-mongos, mongodb-enterprise-server, mongodb-enterprise-shell, mongodb-enterprise-tools, mongodb-nightly, mongodb-org, mongodb-org-mongos, mongodb-org-server, mongodb-org-shell, mongodb-org-tools, mongodb-stable, mongodb18-10gen, mongodb20-10gen, mongodb-org-unstable, mongodb-org-unstable-mongos, mongodb-org-unstable-server, mongodb-org-unstable-shell, mongodb-org-unstable-tools Obsoletes: @@PACKAGE_OBSOLETES@@ Version: @@PACKAGE_VERSION@@ Release: mongodb_@@PACKAGE_REVISION@@%{?dist} @@ -945,9 +942,6 @@ fi # whatever the hell that means. s=re.sub("@@PACKAGE_REVISION@@", str(int(spec.param("revision"))+1) if spec.param("revision") else "1", s) s=re.sub("@@BINARYDIR@@", BINARYDIR, s) - conflict_suffixes=["", "-stable", "-unstable", "-nightly", "-10gen", "-10gen-unstable", "-10gen-enterprise", "-org"] - conflict_suffixes = [suff for suff in conflict_suffixes if suff != spec.suffix()] - s=re.sub("@@PACKAGE_CONFLICTS@@", ", ".join(["mongo"+suffix for suffix in conflict_suffixes] + [ "mongo18"+suffix for suffix in conflict_suffixes] + ["mongo20"+suffix for suffix in conflict_suffixes]), s) if suffix.endswith("-org"): s=re.sub("@@PACKAGE_PROVIDES@@", "mongodb-stable", s) s=re.sub("@@PACKAGE_OBSOLETES@@", "mongodb-stable,mongo-stable", s) @@ -957,6 +951,9 @@ fi elif suffix == "-enterprise": s=re.sub("@@PACKAGE_PROVIDES@@", "mongodb-enterprise", s) s=re.sub("@@PACKAGE_OBSOLETES@@", "mongodb-enterprise,mongo-enterprise", s) + elif suffix == "-enterprise-unstable": + s=re.sub("@@PACKAGE_PROVIDES@@", "mongodb-enterprise-unstable", s) + s=re.sub("@@PACKAGE_OBSOLETES@@", "mongodb-enterprise-unstable,mongo-enterprise-unstable", s) else: raise Exception("BUG: unknown suffix %s" % suffix) |