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