[master 5/6] dd-refactor: new driver_updates.py + tests
wgwoods
installerbot-noreply at redhat.com
Wed Jul 8 17:46:21 UTC 2015
In reply to line 244 of dracut/driver_updates.py:
> This could use a generator expression instead of constructing the temporary list.
Hmm. Also, this would cause an exception: `extract_drivers(repos=repolist, drivers=driver_generator)`
I think I'll refactor the repo extraction to a different function:
```python
def extract_repos(repos, outdir, pkglist):
extract_drivers((d for repo in repos for d in dd_list(repo)), outdir, pkglist)
```
--
To view this comment on github, visit https://github.com/wgwoods/anaconda/commit/d2698c0e08d29b5754db8e7a42e1dfc7bd79e6aa#commitcomment-12067542
More information about the anaconda-patches
mailing list