Changeset 87434f6 in rtems-source-builder


Ignore:
Timestamp:
Mar 18, 2016, 2:34:26 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
2bbb065
Parents:
a8d64ad
Message:

sb: Make the URL output truncate on long long URLs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/download.py

    ra8d64ad r87434f6  
    7171
    7272def _sensible_url(url, used = 0):
    73     if used < 140:
    74         space = 150 - used - 15
    75     else:
    76         space = 20
     73    space = 200
    7774    if len(url) > space:
    78         size = int((space - 5) / 2)
    79         url = url[:size] + ' ... ' + url[-size:]
     75        size = int(space - 14)
     76        url = url[:size] + '...<see log>'
    8077    return url
    8178
Note: See TracChangeset for help on using the changeset viewer.