Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
209 - 1
"""
2
Copyright 2010 VMware, Inc.  All rights reserved. -- VMware Confidential
3
 
4
VMware Network Editor component installer.
5
"""
6
import glob
7
import os
8
 
9
DEST = LIBDIR/'vmware'
10
 
11
class NetworkEditor(Installer):
12
   """
13
   This class contains the installer logic for the NetworkEditor component.
14
   """
15
 
16
   def InitializeInstall(self, old, new, upgrade):
17
      self.AddTarget('File', 'bin/*', BINDIR)
18
      self.AddTarget('File', 'lib/*', DEST/'lib')
19
      self.SetPermission(BINDIR/'*', BINARY)
20
 
21
      # Symlink to AppLoader.
22
      self.AddTarget('Link', DEST/'bin/appLoader', DEST/'bin/vmware-netcfg')
23
 
24
 
25
   def PostUninstall(self, old, new, upgrade):
26
      if not upgrade:
27
         [os.unlink(p) for p in glob.glob('/dev/vmnet[0-9]*')]