Beispiel #1
0
 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())
Beispiel #2
0
 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())
Beispiel #3
0
 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()
Beispiel #4
0
 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()
Beispiel #5
0
 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())