Changeset d44b4d2 in rtems-source-builder


Ignore:
Timestamp:
Mar 18, 2016, 2:34:26 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.9, master
Children:
a15650c
Parents:
07eef42
git-author:
Chris Johns <chrisj@…> (03/18/16 02:34:26)
git-committer:
Chris Johns <chrisj@…> (03/18/16 02:35:05)
Message:

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

File:
1 edited

Legend:

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

    r07eef42 rd44b4d2  
    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.