summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-02-12 16:25:23 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-02-13 15:39:37 +0000
commit070bcbd497583955e9069ced7aa2473bce2bc3b5 (patch)
treecae630faacd8a2dc950c457529b719fe46337484 /scripts
parent2c9ad8890860f47d03433405c57f33f514fcd456 (diff)
downloadmorph-070bcbd497583955e9069ced7aa2473bce2bc3b5.tar.gz
Remove tests for working with null refs
Refs should be completely omitted, and this is now the standard behaviour, so there's little value in testing the behaviour separately.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nullify-local-refs18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/nullify-local-refs b/scripts/nullify-local-refs
deleted file mode 100755
index 5db5c587..00000000
--- a/scripts/nullify-local-refs
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/python
-
-import yaml, sys
-repo = sys.argv[1]
-ref = sys.argv[2]
-for filename in sys.argv[3:]:
- with open(filename, "r") as f:
- d = yaml.load(f)
- if "strata" in d:
- for spec in d["strata"]:
- if spec["repo"] == repo and spec["ref"] == ref:
- spec["repo"] = spec["ref"] = None
- if "build-depends" in d:
- for spec in d["build-depends"]:
- if spec["repo"] == repo and spec["ref"] == ref:
- spec["repo"] = spec["ref"] = None
- with open(filename, "w") as f:
- yaml.dump(d, f)