Ejemplo n.º 1
0
 def compare_details(self, other, source=None):
     differences = []
     # look up differences in metadata
     content1 = get_ar_content(self.path)
     content2 = get_ar_content(other.path)
     differences.append(Difference.from_text(
                            content1, content2, self.path, other.path, source="metadata"))
     differences.extend(_compare_elf_data(self.path, other.path))
     return differences
Ejemplo n.º 2
0
 def compare_details(self, other, source=None):
     differences = []
     # look up differences in metadata
     content1 = get_ar_content(self.path)
     content2 = get_ar_content(other.path)
     differences.append(Difference.from_text(
                            content1, content2, self.path, other.path, source="metadata"))
     differences.extend(_compare_elf_data(self.path, other.path))
     return differences
Ejemplo n.º 3
0
 def compare_details(self, other, source=None):
     differences = []
     my_content = get_ar_content(self.path)
     other_content = get_ar_content(other.path)
     differences.append(Difference.from_text(
                            my_content, other_content, self.path, other.path, source="metadata"))
     with DebContainer(self).open() as my_container, \
          DebContainer(other).open() as other_container:
         differences.extend(my_container.compare(other_container))
     return differences
Ejemplo n.º 4
0
 def compare_details(self, other, source=None):
     my_content = get_ar_content(self.path)
     other_content = get_ar_content(other.path)
     return [
         Difference.from_text(my_content,
                              other_content,
                              self.path,
                              other.path,
                              source="metadata")
     ]
Ejemplo n.º 5
0
     def compare_details(self, other, source=None):
-        my_content = get_ar_content(self.path)
-        other_content = get_ar_content(other.path)
-        return [Difference.from_text(my_content, other_content, self.path, other.path, source="metadata")]
-
+        return [Difference.from_text_readers(list_libarchive(self.path),
+                                             list_libarchive(other.path),
+                                             self.path, other.path, source="file list")]
 
 class Md5sumsFile(File):
     @staticmethod