Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23018/src/helpers

Modified Files:
        install.py 
Log Message:
remove some util functions

Index: install.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/install.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** install.py  28 Oct 2004 19:37:40 -0000      1.11
--- install.py  27 Aug 2005 15:36:20 -0000      1.12
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.12  2005/08/27 15:36:20  dischi
+ # remove some util functions
+ #
  # Revision 1.11  2004/10/28 19:37:40  dischi
  # remove LD_PRELOAD handling
***************
*** 62,65 ****
--- 65,86 ----
              os.mkdir(cd)
              
+ def getdirnames(dirname, softlinks=True, sort=True):
+     """
+     Get all subdirectories in the given directory.
+     Returns a list that is case insensitive sorted.
+     """
+     if not dirname.endswith('/'):
+         dirname += '/'
+ 
+     try:
+         dirnames = [ dirname + dname for dname in os.listdir(dirname) if \
+                      os.path.isdir(dirname + dname) and \
+                      (softlinks or not os.path.islink(dirname + dname))]
+     except OSError:
+         return []
+ 
+     dirnames.sort(lambda l, o: cmp(l.upper(), o.upper()))
+     return dirnames
+ 
      
  if len(sys.argv) == 2 and os.path.isfile(sys.argv[1]):
***************
*** 121,125 ****
      else:
          # check package
!         d = util.fileops.getdirnames('tmp')
          if len(d) != 1:
              print 'package is not a freevo theme or plugin, please contact 
the author'
--- 142,146 ----
      else:
          # check package
!         d = getdirnames('tmp')
          if len(d) != 1:
              print 'package is not a freevo theme or plugin, please contact 
the author'



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to