summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>2014-07-23 15:54:46 +0100
committerDimitri John Ledkov <dimitri.ledkov@canonical.com>2014-07-23 15:54:46 +0100
commitee4a64ecad554901a46bf8c8d2fb81f816a91818 (patch)
tree5922d1bb108fb1c9c8f6e9cc79cf6611bafcf7c4 /setup.py
parenta04baf85a8eea4eb02168429aa6bfaaeb2effb42 (diff)
downloadvyos-cloud-init-ee4a64ecad554901a46bf8c8d2fb81f816a91818.tar.gz
vyos-cloud-init-ee4a64ecad554901a46bf8c8d2fb81f816a91818.zip
refactor
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index e27997de..1a6d0cf4 100755
--- a/setup.py
+++ b/setup.py
@@ -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',