Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1:/tmp/cvs-serv32483/src/helpers

Modified Files:
        install.py 
Log Message:
Check for libs and make it possible to install runtime from within
freevo


Index: install.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/install.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** install.py  28 Oct 2003 21:26:10 -0000      1.1
--- install.py  2 Nov 2003 09:24:34 -0000       1.2
***************
*** 12,15 ****
--- 12,19 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.2  2003/11/02 09:24:34  dischi
+ # Check for libs and make it possible to install runtime from within
+ # freevo
+ #
  # Revision 1.1  2003/10/28 21:26:10  dischi
  # make install a helper to make it also work for non installed versions
***************
*** 42,46 ****
  import os
  
! import config
  import util.fileops
  
--- 46,53 ----
  import os
  
! # Must do this here to make sure no os.system() calls generated by module init
! # code gets LD_PRELOADed
! os.environ['LD_PRELOAD'] = ''
! 
  import util.fileops
  
***************
*** 56,59 ****
--- 63,76 ----
          os.chdir(os.path.join(os.environ['FREEVO_PYTHON'], '..'))
  
+     if os.path.basename(tgz).startswith('runtime'):
+         if not is_local:
+             print 'impossible to install a runtime in an installed version'
+             print 'of freevo.'
+         else:
+             print 'installing new runtime'
+             util.fileops.rmrf('runtime')
+             os.system('tar -zxf %s' % tgz)
+         sys.exit(0)
+         
      # create tmp directory
      if os.path.isdir('tmp'):




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to