def Diff(self, src, dest, rpms, no_files, names_only): diff = Diff() args = self.Args() args.compares = [src, dest] args.verbose = True args.no_files = no_files args.names_only = names_only args.rpms = rpms diff.set_args(args) return json.dumps(diff.diff())
def Diff(self, first, second): diff = Diff() args = self.Args() args.compares = [first, second] args.json = True args.no_files = False args.names_only = False args.rpms = True args.verbose = True diff.set_args(args) return diff.diff()
def Diff(self, src, dest, rpms, no_files, names_only, diff_keywords, metadata): diff = Diff() args = self.Args() args.compares = [src, dest] args.verbose = True args.no_files = no_files args.names_only = names_only args.rpms = rpms args.keywords = diff_keywords args.metadata = metadata diff.set_args(args) return json.dumps(diff.diff())