diff options
Diffstat (limited to 'tests/regress/opk.py')
-rw-r--r-- | tests/regress/opk.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/regress/opk.py b/tests/regress/opk.py index 9763bd3..ebfb6ec 100644 --- a/tests/regress/opk.py +++ b/tests/regress/opk.py @@ -14,6 +14,13 @@ class Opk: if k not in self.valid_control_fields: raise Exception("Invalid control field: " "{}".format(k)) + if "Package" not in control.keys(): + print("Cannot create opk without Package name.\n") + return None + if "Architecture" not in control.keys(): + control["Architecture"] = "all" + if "Version" not in control.keys(): + control["Version"] = "1.0" self.control = control def write(self, tar_not_ar=False, data_files=None): |