Changeset 5f6ad9d in rtems-source-builder


Ignore:
Timestamp:
Jan 10, 2019, 12:15:33 PM (8 days ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
8b0e78a
Parents:
f101ea1
git-author:
Sebastian Huber <sebastian.huber@…> (01/10/19 12:15:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/11/19 06:24:47)
Message:

Fix 'build_max_size_human' ref. before assignment

Close #3568.

File:
1 edited

Legend:

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

    rf101ea1 r5f6ad9d  
    362362            log.trace('_bset: %s: configs: %s'  % (self.bset, ','.join(configs)))
    363363
     364            sizes_valid = False
    364365            builds = []
    365366            for s in range(0, len(configs)):
     
    479480                build_size += ', patches: %s' % (build_patches_size_human)
    480481                build_size += ', installed %s)' % (build_installed_size_human)
     482                sizes_valid = True
    481483            #
    482484            # Cleaning ...
     
    528530                body += 'Sizes' + os.linesep
    529531                body += '=====' + os.linesep + os.linesep
    530                 if len(builds) > 1:
     532                if sizes_valid:
    531533                    body += 'Maximum build usage: ' + build_max_size_human + os.linesep
    532534                    body += 'Total size: ' + build_total_size_human + os.linesep
Note: See TracChangeset for help on using the changeset viewer.