mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +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,10 +83,9 @@ class IncludePackagesInBootstrap(Task):
|
|||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
info.include_packages = \
|
||||
info.include_packages.union(
|
||||
set(info.manifest.bootstrapper['include_packages'])
|
||||
)
|
||||
info.include_packages.update(
|
||||
set(info.manifest.bootstrapper['include_packages'])
|
||||
)
|
||||
|
||||
|
||||
class ExcludePackagesInBootstrap(Task):
|
||||
|
@ -96,7 +95,6 @@ class ExcludePackagesInBootstrap(Task):
|
|||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
info.exclude_packages = \
|
||||
info.exclude_packages.union(
|
||||
set(info.manifest.bootstrapper['exclude_packages'])
|
||||
)
|
||||
info.exclude_packages.update(
|
||||
set(info.manifest.bootstrapper['exclude_packages'])
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue