Comment 2 for bug 1394798

Revision history for this message
Brian Murray (brian-murray) wrote :

This would fix the issue:

=== modified file 'apport/sandboxutils.py'
--- apport/sandboxutils.py 2014-08-27 09:53:53 +0000
+++ apport/sandboxutils.py 2014-11-21 00:07:25 +0000
@@ -195,7 +195,9 @@
     # crashing binary
     for path in ('InterpreterPath', 'ExecutablePath'):
         if path in report:
- pkg = apport.packaging.get_file_package(report[path], True, cache_dir,
+ if sandbox_dir:
+ new_cache_dir = os.path.join(cache_dir, report['DistroRelease'])
+ pkg = apport.packaging.get_file_package(report[path], True, new_cache_dir,
                                                     release=report['DistroRelease'],
                                                     arch=report.get('Architecture'))
             if pkg: