7383a6345e
Copy from Base:System/rpmlint based on submit request 17759 from user thomasbiege OBS-URL: https://build.opensuse.org/request/show/17759 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=43
41 lines
759 B
Diff
41 lines
759 B
Diff
--- Filter.py
|
|
+++ Filter.py
|
|
@@ -80,23 +80,24 @@
|
|
|
|
def _diag_compare(x, y):
|
|
|
|
- where_a = x.split()[1]
|
|
- level_a = x.split()[2]
|
|
+ where_a = x.split()[2]
|
|
+ level_a = x.split()[1]
|
|
|
|
- where_b = y.split()[1]
|
|
- level_b = y.split()[2]
|
|
+ where_b = y.split()[2]
|
|
+ level_b = y.split()[1]
|
|
|
|
- if level_b > level_a:
|
|
+ if (level_b > level_a):
|
|
return 1
|
|
- elif level_b == level_a:
|
|
- if where_b > where_b:
|
|
- return 1
|
|
- elif where_b == where_a:
|
|
- return 0
|
|
- else:
|
|
- return -1
|
|
- else:
|
|
+
|
|
+ if (level_b < level_a):
|
|
+ return -1
|
|
+
|
|
+ if (where_b < where_a):
|
|
+ return 1
|
|
+
|
|
+ if (where_b > where_a):
|
|
return -1
|
|
+ return 0
|
|
|
|
|
|
def printAllReasons():
|