Skip to content

Commit

Permalink
Fix virt installs
Browse files Browse the repository at this point in the history
  • Loading branch information
kormoc committed Dec 24, 2012
1 parent d304ffc commit 2de136b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
('share/diamond/user_scripts', []),
]

distro = platform.dist()[0]
distro_major_version = platform.dist()[1].split('.')[0]

if os.getenv('VIRTUAL_ENV', False):
data_files.append(('etc/diamond',
glob('conf/*.conf.*')))
Expand All @@ -33,9 +36,6 @@
data_files.append(('/etc/diamond/handlers',
glob('conf/handlers/*')))

distro = platform.dist()[0]
distro_major_version = platform.dist()[1].split('.')[0]

if distro == 'Ubuntu':
data_files.append(('/etc/init',
['debian/upstart/diamond.conf']))
Expand Down

0 comments on commit 2de136b

Please sign in to comment.