From 435da59b048c46d24311b84c60e6a4e8d5f357d3 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 26 May 2009 14:48:44 -0400 Subject: Make the save-to-bugzilla dupe detection smarter. This fixes two problems with how we determine tracebacks are the same based on filename comparisons: (1) Comparisons between python files on i386 and x86-64 tracebacks fail because /usr/lib and /usr/lib64 are different, even though the files themselves are the same. (2) Comparisons between python files on the running system and in /tmp/updates fail obviously. This is a little less concerning to fail on, but since the lines of code are likely to change in an updates.img, duplicates should still work properly. --- exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exception.py') diff --git a/exception.py b/exception.py index 3bb8781bc..7b0964689 100644 --- a/exception.py +++ b/exception.py @@ -243,7 +243,7 @@ class AnacondaExceptionDump: for (file, lineno, func, text) in [f[1:5] for f in self.stack]: if type(text) == type([]): text = "".join(text) - s += "%s %s %s\n" % (file, func, text) + s += "%s %s %s\n" % (os.path.basename(file), func, text) return hashlib.sha256(s).hexdigest() -- cgit