]> git.ipfire.org Git - pakfire.git/commitdiff
Fix generation of package file path name.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Nov 2011 11:51:46 +0000 (12:51 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Nov 2011 11:51:46 +0000 (12:51 +0100)
python/pakfire/builder.py

index 89500f473075aeee2dfaefa22754427017f829d6..c28d3ddb6c05bbe3889ab20e02b897b689bb48ec 100644 (file)
@@ -552,7 +552,7 @@ class BuildEnviron(object):
                pkgfile = os.path.join(self.build_dir, "%s.%s" % (self.pkg.name, MAKEFILE_EXTENSION))
                if not os.path.exists(pkgfile):
                        raise BuildError, _("Could not find makefile in build root: %s") % pkgfile
-               pkgfile = os.path.relpath(pkgfile, self.chrootPath())
+               pkgfile = "/%s" % os.path.relpath(pkgfile, self.chrootPath())
 
                resultdir = self.chrootPath("/result")