Author: dmeyer
Date: Wed Nov 29 17:20:12 2006
New Revision: 2116

Added:
   trunk/base/src/distribution/
   trunk/base/src/distribution/core.py
      - copied, changed from r2115, /trunk/base/src/distribution.py
   trunk/base/src/distribution/version.py
      - copied unchanged from r2115, /trunk/base/src/version.py
Removed:
   trunk/base/src/distribution.py
Modified:
   trunk/base/src/version.py

Log:
move distribution.py into a subdir

Copied: trunk/base/src/distribution/core.py (from r2115, 
/trunk/base/src/distribution.py)
==============================================================================
--- /trunk/base/src/distribution.py     (original)
+++ trunk/base/src/distribution/core.py Wed Nov 29 17:20:12 2006
@@ -1,6 +1,6 @@
 # -*- coding: iso-8859-1 -*-
 # -----------------------------------------------------------------------------
-# distribution.py - distutils functions for kaa packages
+# core.py - distribution core functions for kaa packages
 # -----------------------------------------------------------------------------
 # $Id$
 #
@@ -391,7 +391,7 @@
         fd.close()
         os.system('ebuild %s digest' % ebuild)
 
-        
+
 def setup(**kwargs):
     """
     A setup script wrapper for kaa modules.

Modified: trunk/base/src/version.py
==============================================================================
--- trunk/base/src/version.py   (original)
+++ trunk/base/src/version.py   Wed Nov 29 17:20:12 2006
@@ -1,63 +1 @@
-# -*- coding: iso-8859-1 -*-
-# -----------------------------------------------------------------------------
-# version.py - version handling for kaa modules
-# -----------------------------------------------------------------------------
-# $Id$
-#
-# -----------------------------------------------------------------------------
-# Copyright (C) 2005 Dirk Meyer, Jason Tackaberry
-#
-# First Edition: Dirk Meyer <[EMAIL PROTECTED]>
-# Maintainer:    Dirk Meyer <[EMAIL PROTECTED]>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
-# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-# Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-# -----------------------------------------------------------------------------
-
-# python imports
-import math
-
-class Version(object):
-    """
-    Version information for kaa modules.
-    """
-    def __init__(self, version):
-        """
-        Set internal version as string.
-        """
-        self.version = str(version)
-
-    def __str__(self):
-        """
-        Convert to string.
-        """
-        return self.version
-
-    def __float__(self):
-        """
-        Convert to float for comparison.
-        """
-        version = 0
-        for pos, val in enumerate(self.version.split('.')):
-            version += int(val) * (float(1) / math.pow(100, pos))
-        return version
-
-    def __cmp__(self, obj):
-        """
-        Compare two version.
-        """
-        if not isinstance(obj, Version):
-            obj = Version(obj)
-        return cmp(float(self), float(obj))
+from distribution.version import Version

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to