aboutsummaryrefslogtreecommitdiff
path: root/hwpack
diff options
context:
space:
mode:
authorMichael Hudson <michael.hudson@linaro.org>2010-12-08 15:44:45 +1300
committerMichael Hudson <michael.hudson@linaro.org>2010-12-08 15:44:45 +1300
commit5e9847140992843b7f41915350226643ba6f7bc4 (patch)
tree21407ba32e66f91a7775977ab3fe6a77c68917ab /hwpack
parenta4f44f441c0cedca32bb2f82edcca9689caab2fd (diff)
bump hwpack format to 2
Diffstat (limited to 'hwpack')
-rw-r--r--hwpack/hardwarepack.py2
-rw-r--r--hwpack/testing.py2
-rw-r--r--hwpack/tests/test_hardwarepack.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/hwpack/hardwarepack.py b/hwpack/hardwarepack.py
index 8bea9b4..a68e586 100644
--- a/hwpack/hardwarepack.py
+++ b/hwpack/hardwarepack.py
@@ -96,7 +96,7 @@ class HardwarePack(object):
"""
# The format version cannot contain white spaces.
- FORMAT = "1.0"
+ FORMAT = "2.0"
FORMAT_FILENAME = "FORMAT"
METADATA_FILENAME = "metadata"
MANIFEST_FILENAME = "manifest"
diff --git a/hwpack/testing.py b/hwpack/testing.py
index c06d9d1..551b10d 100644
--- a/hwpack/testing.py
+++ b/hwpack/testing.py
@@ -337,7 +337,7 @@ class IsHardwarePack(Matcher):
tf = tarfile.open(name=path, mode="r:gz")
try:
matchers = []
- matchers.append(HardwarePackHasFile("FORMAT", content="1.0\n"))
+ matchers.append(HardwarePackHasFile("FORMAT", content="2.0\n"))
matchers.append(HardwarePackHasFile(
"metadata", content=str(self.metadata)))
manifest_lines = []
diff --git a/hwpack/tests/test_hardwarepack.py b/hwpack/tests/test_hardwarepack.py
index 8416d4a..e91b649 100644
--- a/hwpack/tests/test_hardwarepack.py
+++ b/hwpack/tests/test_hardwarepack.py
@@ -108,9 +108,9 @@ class HardwarePackTests(TestCase):
super(HardwarePackTests, self).setUp()
self.metadata = Metadata("ahwpack", "4", "armel")
- def test_format_is_1_0(self):
+ def test_format_is_2_0(self):
hwpack = HardwarePack(self.metadata)
- self.assertEqual("1.0", hwpack.FORMAT)
+ self.assertEqual("2.0", hwpack.FORMAT)
def test_format_has_no_spaces(self):
hwpack = HardwarePack(self.metadata)