Example #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
Example #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")
     ]
Example #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
Example #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
Example #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")]