diff options
| author | Robert C Jennings <robert.jennings@canonical.com> | 2017-06-27 13:56:52 -0500 | 
|---|---|---|
| committer | Robert C Jennings <robert.jennings@canonical.com> | 2017-06-27 13:56:52 -0500 | 
| commit | a7ef80b69d0f0a204b66faa7cfe8695f973bc446 (patch) | |
| tree | f1f1a2bd7a44b7e461cfac561a6e2d1474dba289 | |
| parent | 2243bc3e532eb4c5854b4414054f9a8e0d395456 (diff) | |
Strip architecture from binary when searching cache
bzr-revno: 18.2.31
| -rwxr-xr-x | mfdiff | 3 | 
1 files changed, 2 insertions, 1 deletions
| @@ -340,7 +340,8 @@ def source_version_for_binary(cache, binary, binary_ver):  try:  return versions[binary_ver].source_version  except KeyError: - source_name = cache[binary].versions[0].source_name + # Strip the architecture name from the binary + source_name = cache[binary.split(':')[0]].versions[0].source_name  msg = ("Unable to determine source version for %s. "  "Binary package %s/%s not in known source version "  "list (%s)" % (source_name, binary, binary_ver, versions)) | 
