diff --git a/src/pisi/build.py b/src/pisi/build.py index bfee1581..f26c57e8 100644 --- a/src/pisi/build.py +++ b/src/pisi/build.py @@ -54,6 +54,10 @@ class PisiBuild: self.actionScript = open( os.path.dirname( self.pspecfile ) + '/' + 'actions' ).read() + # FIXME: It's wrong to assume that unpacked archive + # will create a name-version top-level directory. + # Archive module should give the exact location. + # (from the assumption is evil dept.) os.chdir( config.build_work_dir( self.spec.source.name, self.spec.source.version, self.spec.source.release ) + "/" + self.spec.source.name + "-" + self.spec.source.version) locals = globals = {} exec compile( self.actionScript , "error", "exec" ) in locals,globals