diff options
author | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2014-07-23 15:54:46 +0100 |
---|---|---|
committer | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2014-07-23 15:54:46 +0100 |
commit | ee4a64ecad554901a46bf8c8d2fb81f816a91818 (patch) | |
tree | 5922d1bb108fb1c9c8f6e9cc79cf6611bafcf7c4 | |
parent | a04baf85a8eea4eb02168429aa6bfaaeb2effb42 (diff) | |
download | vyos-cloud-init-ee4a64ecad554901a46bf8c8d2fb81f816a91818.tar.gz vyos-cloud-init-ee4a64ecad554901a46bf8c8d2fb81f816a91818.zip |
refactor
-rwxr-xr-x | setup.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -109,13 +109,13 @@ class InitsysInstallData(install): if len(bad) != 0: raise DistutilsArgError( "Invalid --init-system: %s" % (','.join(bad))) - elif self.init_system: - for sys in self.init_systems: - print("adding %s: %s" % (sys, str(INITSYS_ROOTS[sys]))) - self.distribution.data_files.append( - (INITSYS_ROOTS[sys], INITSYS_FILES[sys])) - # Force that command to reinitalize (with new file list) - self.distribution.reinitialize_command('install_data', True) + + for sys in self.init_systems: + print("adding %s: %s" % (sys, str(INITSYS_ROOTS[sys]))) + self.distribution.data_files.append( + (INITSYS_ROOTS[sys], INITSYS_FILES[sys])) + # Force that command to reinitalize (with new file list) + self.distribution.reinitialize_command('install_data', True) setuptools.setup(name='cloud-init', |