Exemplo n.º 1
0
 def compare_details(self, other, source=None):
     differences = []
     differences.append(Difference.from_text_readers(list_libarchive(self.path),
                                                     list_libarchive(other.path),
                                                     self.path, other.path, source="file list"))
     differences.extend(_compare_elf_data(self.path, other.path))
     return differences
Exemplo n.º 2
0
 def compare_details(self, other, source=None):
     return [
         Difference.from_text_readers(list_libarchive(self.path),
                                      list_libarchive(other.path),
                                      self.path,
                                      other.path,
                                      source="file list")
     ]
Exemplo n.º 3
0
 def compare_details(self, other, source=None):
     differences = []
     differences.append(
         Difference.from_text_readers(list_libarchive(self.path),
                                      list_libarchive(other.path),
                                      self.path,
                                      other.path,
                                      source="file list"))
     differences.extend(_compare_elf_data(self.path, other.path))
     return differences
Exemplo 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")]
-
+        return [Difference.from_text_readers(list_libarchive(self.path),
+                                             list_libarchive(other.path),
+                                             self.path, other.path, source="file list")]
 
 class Md5sumsFile(File):
     @staticmethod
Exemplo n.º 5
0
 def compare_details(self, other, source=None):
     return [Difference.from_text_readers(list_libarchive(self.path),
                                     list_libarchive(other.path),
                                     self.path, other.path, source="file list")]