-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBZ-592943-repodiff.patch
27 lines (25 loc) · 1.09 KB
/
BZ-592943-repodiff.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- yum-utils-1.1.26-orig/repodiff.py 2010-05-17 09:42:30.000000000 -0400
+++ yum-utils-1.1.26-orig/repodiff.py 2010-05-17 09:46:48.461318450 -0400
@@ -20,7 +20,6 @@
import os
import locale
from yum.i18n import to_unicode
-import time
from optparse import OptionParser
@@ -220,13 +219,13 @@
# Don't sort as that can screw the order up when time is the
# same.
oldtime = oldlogs[0][0]
- oldauth = oldlogs[0][2]
+ oldauth = oldlogs[0][1]
oldcontent = oldlogs[0][2]
for (t, author, content) in pkg.changelog:
if t < oldtime:
break
- if ((t == oldtime) and ((author != oldauth) or
- (content != oldcontent)):
+ if ((t == oldtime) and (author == oldauth) and
+ (content == oldcontent)):
break
tm = datetime.date.fromtimestamp(int(t))
tm = tm.strftime("%a %b %d %Y")