diff --git a/src/pisi/actionsapi/libtoolize.py b/src/pisi/actionsapi/libtoolize.py index 81849374..47ef40fd 100644 --- a/src/pisi/actionsapi/libtoolize.py +++ b/src/pisi/actionsapi/libtoolize.py @@ -1,16 +1,14 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -import os,sys - -#sys.path.append('..') -from pisi.context import Context +import os def libtoolize(): ''' FIXME: Düzgün hale getirilecek ''' ''' patch source with ltmain patches ''' - # no need to create a context for calling static functions - # currently staticmethods doesn't work in Contex but this function isn't used to ;) + # This is wrong! Action files should only operate on the build + # directory. And shouldn't depend on external files. If a patch is + # need to be applied it is PisiBuild's job to do it! os.system('patch -sN < ' + Context.lib_dir() + '/portage-1.4.1.patch') os.system('patch -sN < ' + Context.lib_dir() + '/sed-1.4.0.patch')