mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
python3's map() returns a map object, but we expect sources to be a list
This commit is contained in:
parent
e153a58611
commit
caa7c77440
1 changed files with 3 additions and 1 deletions
|
@ -614,7 +614,9 @@ class NoTgzBuilder(Builder):
|
|||
debug("Scanning for sources.")
|
||||
cmd = "/usr/bin/spectool --list-files '%s' | awk '{print $2}' |xargs -l1 --no-run-if-empty basename " % self.spec_file
|
||||
result = run_command(cmd)
|
||||
self.sources = map(lambda x: os.path.join(self.rpmbuild_gitcopy, x), result.split("\n"))
|
||||
self.sources = []
|
||||
for source in result.split("\n"):
|
||||
self.sources.append(os.path.join(self.rpmbuild_gitcopy, source))
|
||||
debug(" Sources: %s" % self.sources)
|
||||
|
||||
def _get_rpmbuild_dir_options(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue