[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/emerge/portage/dev-util/7zip
From:       Patrick Spendrin <ps_ml () gmx ! de>
Date:       2010-11-09 12:38:38
Message-ID: 20101109123838.736B5AC89B () svn ! kde ! org
[Download RAW message or body]

SVN commit 1194664 by sengels:

remove circular dependency for implicit dependencies

 M  +21 -4     7zip-9.16.py  


--- trunk/kdesupport/emerge/portage/dev-util/7zip/7zip-9.16.py #1194663:1194664
@@ -1,4 +1,3 @@
-import base
 import info
 
 class subinfo(info.infoclass):
@@ -15,14 +14,32 @@
     def setDependencies( self ):
         self.hardDependencies['gnuwin32/wget']       = 'default'
 
-from Package.BinaryPackageBase import *
+from Source.SourceBase import *
+from Package.PackageBase import *
+from BuildSystem.BinaryBuildSystem import *
 
-class Package(BinaryPackageBase):
+class Package( PackageBase, SourceBase, BinaryBuildSystem ):
     def __init__( self):
         self.subinfo = subinfo()
         self.subinfo.options.merge.ignoreBuildType = True
         self.subinfo.options.merge.destinationPath = "dev-utils"
-        BinaryPackageBase.__init__(self)
+        self.subinfo.options.install.installPath = "bin"
+        SourceBase.__init__( self )
+        PackageBase.__init__( self )
+        BinaryBuildSystem.__init__( self )
 
+    def fetch( self ):
+        filenames = [ os.path.basename( self.subinfo.target() ) ]
+
+        if ( self.noFetch ):
+            utils.debug( "skipping fetch (--offline)" )
+            return True
+
+        self.setProxy()
+        return utils.getFiles( self.subinfo.target(), self.downloadDir() )
+
+    def unpack( self ):
+        return utils.unpackFiles( self.downloadDir(), [ os.path.basename( \
self.subinfo.target() ) ], self.imageDir() ) +
 if __name__ == '__main__':
     Package().execute()


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic