class Version:
"""A class for holding parsed package version information."""
-@@ -131,78 +133,58 @@ class Package:
+@@ -131,78 +133,61 @@ class Package:
self.section = None
self.filename_header = None
self.file_list = []
+ tarStream = ar.open("control.tar.gz")
+ tarf = tarfile.open("control.tar.gz", "r", tarStream)
+
-+ control = tarf.extractfile("control")
++ try:
++ control = tarf.extractfile("control")
++ except KeyError:
++ control = tarf.extractfile("./control")
+ self.read_control(control)
control.close()
- if self.isdeb: