debian/kernel/gconf/gtk-icon-cache: PKGDESK/PKG fixes
authorRichard Purdie <rpurdie@linux.intel.com>
Mon, 16 Nov 2009 10:52:35 +0000 (10:52 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 16 Nov 2009 10:52:35 +0000 (10:52 +0000)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/debian.bbclass
meta/classes/gconf.bbclass
meta/classes/gtk-icon-cache.bbclass
meta/classes/kernel.bbclass

index 0afe9fc..8f6e7d8 100644 (file)
@@ -16,7 +16,7 @@ do_package_write_rpm[rdeptask] = "do_package"
 python debian_package_name_hook () {
        import glob, copy, stat, errno, re
 
-       workdir = bb.data.getVar('WORKDIR', d, 1)
+       pkgdest = bb.data.getVar('PKGDEST', d, 1)
        packages = bb.data.getVar('PACKAGES', d, 1)
 
        def socrunch(s):
@@ -45,7 +45,7 @@ python debian_package_name_hook () {
                sonames = []
                has_bins = 0
                has_libs = 0
-               pkg_dir = os.path.join(workdir, "install", orig_pkg)
+               pkg_dir = os.path.join(pkgdest, orig_pkg)
                for root, dirs, files in os.walk(pkg_dir):
                        if bin_re.match(root) and files:
                                has_bins = 1
index 0b42e3e..6798678 100644 (file)
@@ -29,10 +29,9 @@ python populate_packages_append () {
        import re
        packages = bb.data.getVar('PACKAGES', d, 1).split()
        pkgdest =  bb.data.getVar('PKGDEST', d, 1)
-       workdir = bb.data.getVar('WORKDIR', d, 1)
        
        for pkg in packages:
-               schema_dir = '%s/%s/%s/etc/gconf/schemas' % (workdir, pkgdest, pkg)
+               schema_dir = '%s/%s/etc/gconf/schemas' % (pkgdest, pkg)
                schemas = []
                schema_re = re.compile(".*\.schemas$")
                if os.path.exists(schema_dir):
index d1aeee5..524c2f0 100644 (file)
@@ -29,10 +29,9 @@ done
 python populate_packages_append () {
        packages = bb.data.getVar('PACKAGES', d, 1).split()
        pkgdest =  bb.data.getVar('PKGDEST', d, 1)
-       workdir = bb.data.getVar('WORKDIR', d, 1)
        
        for pkg in packages:
-               icon_dir = '%s/%s/%s/%s/icons' % (workdir, pkgdest, pkg, bb.data.getVar('datadir', d, 1))
+               icon_dir = '%s/%s/%s/icons' % (pkgdest, pkg, bb.data.getVar('datadir', d, 1))
                if not os.path.exists(icon_dir):
                        continue
                
index 74ec7d5..74f1b75 100644 (file)
@@ -288,7 +288,7 @@ python populate_packages_prepend () {
        def parse_depmod():
                import re
 
-               dvar = bb.data.getVar('D', d, 1)
+               dvar = bb.data.getVar('PKGD', d, 1)
                if not dvar:
                        bb.error("D not defined")
                        return
@@ -337,7 +337,7 @@ python populate_packages_prepend () {
                return deps
        
        def get_dependencies(file, pattern, format):
-               file = file.replace(bb.data.getVar('D', d, 1) or '', '', 1)
+               file = file.replace(bb.data.getVar('PKGD', d, 1) or '', '', 1)
 
                if module_deps.has_key(file):
                        import re
@@ -356,7 +356,7 @@ python populate_packages_prepend () {
                import re
                vals = extract_modinfo(file)
 
-               dvar = bb.data.getVar('D', d, 1)
+               dvar = bb.data.getVar('PKGD', d, 1)
 
                # If autoloading is requested, output /etc/modutils/<name> and append
                # appropriate modprobe commands to the postinst