summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-05-26 14:48:44 -0400
committerChris Lumens <clumens@redhat.com>2009-05-26 14:48:44 -0400
commit435da59b048c46d24311b84c60e6a4e8d5f357d3 (patch)
tree0a6bc1480cd31aa9234c6fe86b36091ca0a745ab /exception.py
parentbbf767d27d7032d1afdd0ba05ad1897e3b5cb56c (diff)
downloadanaconda-435da59b048c46d24311b84c60e6a4e8d5f357d3.tar.gz
anaconda-435da59b048c46d24311b84c60e6a4e8d5f357d3.tar.xz
anaconda-435da59b048c46d24311b84c60e6a4e8d5f357d3.zip
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.
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py2
1 files changed, 1 insertions, 1 deletions
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()