summaryrefslogtreecommitdiff
path: root/morphlib/artifactsplitrule.py
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-12-07 15:02:21 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-03-25 20:57:32 +0000
commit9404317020ff0455cbfd3ca7976d546af823759b (patch)
tree75bf789db3643366f17fd78434f8a85512aa6756 /morphlib/artifactsplitrule.py
parent575c40c7c28bca4ff18979b6e1b76d5cdfa9841f (diff)
downloadmorph-9404317020ff0455cbfd3ca7976d546af823759b.tar.gz
Remove support for definitions version 6
Change-Id: I603b5172902b5249874ea3bb90de59db5a908185
Diffstat (limited to 'morphlib/artifactsplitrule.py')
-rw-r--r--morphlib/artifactsplitrule.py42
1 files changed, 3 insertions, 39 deletions
diff --git a/morphlib/artifactsplitrule.py b/morphlib/artifactsplitrule.py
index ba5abe02..ef44b8e0 100644
--- a/morphlib/artifactsplitrule.py
+++ b/morphlib/artifactsplitrule.py
@@ -189,42 +189,6 @@ class SplitRules(collections.Iterable):
for artifact, rule in self._rules)
-DEFAULT_CHUNK_RULES = [
- ('-bins', [ r"(usr/)?s?bin/.*" ]),
- ('-libs', [
- r"(usr/)?lib(32|64)?/lib[^/]*\.so(\.\d+)*",
- r"(usr/)libexec/.*"]),
- ('-devel', [
- r"(usr/)?include/.*",
- r"(usr/)?lib(32|64)?/lib.*\.a",
- r"(usr/)?lib(32|64)?/lib.*\.la",
- r"(usr/)?(lib(32|64)?|share)/pkgconfig/.*\.pc"]),
- ('-doc', [
- r"(usr/)?share/doc/.*",
- r"(usr/)?share/man/.*",
- r"(usr/)?share/info/.*"]),
- ('-locale', [
- r"(usr/)?share/locale/.*",
- r"(usr/)?share/i18n/.*",
- r"(usr/)?share/zoneinfo/.*"]),
- ('-misc', [ r".*" ]),
-]
-
-
-DEFAULT_STRATUM_RULES = [
- ('-devel', [
- r'.*-devel',
- r'.*-debug',
- r'.*-doc']),
- ('-runtime', [
- r'.*-bins',
- r'.*-libs',
- r'.*-locale',
- r'.*-misc',
- r'.*']),
-]
-
-
# A 'no-op' set of split rules. An empty list would cause everything to be
# ignored, which is unlikely to ever be what a user wants, and breaks some
# internal bits of Morph.
@@ -233,7 +197,7 @@ EMPTY_RULES = [
]
-def unify_chunk_matches(morphology, default_rules=DEFAULT_CHUNK_RULES):
+def unify_chunk_matches(morphology, default_rules=None):
'''Create split rules including defaults and per-chunk rules.
With rules specified in the morphology's 'products' field and the
@@ -262,7 +226,7 @@ def unify_chunk_matches(morphology, default_rules=DEFAULT_CHUNK_RULES):
return split_rules
-def unify_stratum_matches(morphology, default_rules=DEFAULT_STRATUM_RULES):
+def unify_stratum_matches(morphology, default_rules=None):
'''Create split rules including defaults and per-stratum rules.
With rules specified in the chunk spec's 'artifacts' fields, the
@@ -304,7 +268,7 @@ def unify_stratum_matches(morphology, default_rules=DEFAULT_STRATUM_RULES):
match_split_rules))
-def unify_system_matches(morphology, default_rules=[]):
+def unify_system_matches(morphology, default_rules=None):
'''Create split rules including defaults and per-chunk rules.
With rules specified in the morphology's 'products' field and the