Hi,

BinaryPackageBase does not work as expected:
When the downloaded package has a subdir this subdir is not removed
although I've self.targetInstSrc correctly set.

Please see the attached example.

This avoids to use BinaryPackageBase and I've to use the 'old' way to
unpack binary packages.


Christian
import info
import utils

class subinfo(info.infoclass):
    def setDependencies( self ):
        self.hardDependencies['dev-util/wget'] = 'default'
        self.hardDependencies['dev-util/pexports'] = 'default'

    def setTargets( self ):
        i = '1.0.5'
        self.targets[ i ] = 
'http://mirror.leaseweb.com/pub/software/videolan/vlc/%s/win32/vlc-%s-win32.zip'
 % (i, i)
        self.targetInstSrc[ i ] = 'vlc-%s' % i
        self.defaultTarget = i

from Package.BinaryPackageBase import *

class Package(BinaryPackageBase):
    def __init__( self ):
        self.subinfo = subinfo()
        BinaryPackageBase.__init__( self )

    def install( self ):
        # auto-create both import libs with the help of pexports
        self.createImportLibs( "libvlc", "", "" )
        
        return BinaryPackageBase.install( self )

if __name__ == '__main__':
    Package().execute()
_______________________________________________
Kde-windows mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-windows

Reply via email to