mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Be pythonic.
Use sets.update method to add pacakge names.
This commit is contained in:
parent
2982bfc629
commit
058d4d8627
1 changed files with 6 additions and 8 deletions
|
@ -83,8 +83,7 @@ class IncludePackagesInBootstrap(Task):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def run(cls, info):
|
def run(cls, info):
|
||||||
info.include_packages = \
|
info.include_packages.update(
|
||||||
info.include_packages.union(
|
|
||||||
set(info.manifest.bootstrapper['include_packages'])
|
set(info.manifest.bootstrapper['include_packages'])
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -96,7 +95,6 @@ class ExcludePackagesInBootstrap(Task):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def run(cls, info):
|
def run(cls, info):
|
||||||
info.exclude_packages = \
|
info.exclude_packages.update(
|
||||||
info.exclude_packages.union(
|
|
||||||
set(info.manifest.bootstrapper['exclude_packages'])
|
set(info.manifest.bootstrapper['exclude_packages'])
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue