mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Fix sources related bugs.
Updates the sources module introduced bugs in the build and download modules. The commit fixes those modules.
This commit is contained in:
parent
8db5212665
commit
d3629a9bae
@ -160,7 +160,7 @@ class build:
|
||||
# these may be overridden by user loaded macros.
|
||||
#
|
||||
_map = 'source-%s' % (name)
|
||||
src_keys = self.macros.map_keys(_map)
|
||||
src_keys = [s for s in self.macros.map_keys(_map) if s != 'setup']
|
||||
if len(src_keys) == 0:
|
||||
raise error.general('no source set: %s (%s)' % (name, _map))
|
||||
srcs = []
|
||||
@ -247,7 +247,7 @@ class build:
|
||||
args = args[2:]
|
||||
_map = 'patch-%s' % (name)
|
||||
default_opts = ' '.join(args)
|
||||
patch_keys = self.macros.map_keys(_map)
|
||||
patch_keys = [p for p in self.macros.map_keys(_map) if p != 'setup']
|
||||
patches = []
|
||||
for p in patch_keys:
|
||||
pm = self.macros.get(p, globals = False, maps = _map)
|
||||
|
@ -34,6 +34,7 @@ import error
|
||||
import git
|
||||
import log
|
||||
import path
|
||||
import sources
|
||||
|
||||
def _humanize_bytes(bytes, precision = 1):
|
||||
abbrevs = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user