backports: add prefix for integration on dependencies
authorLuis R. Rodriguez <mcgrof@suse.com>
Wed, 5 Nov 2014 08:35:23 +0000 (00:35 -0800)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Fri, 14 Nov 2014 21:47:15 +0000 (13:47 -0800)
When integrating we need the BACKPORT prefix added to
dependency symbols.

Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
gentree.py

index 40b0a55cfe9fb9e91a0fd71c7983fb7b56fbb63d..dd7af84a4ffa1d19858beccb93250550dea1fd1c 100755 (executable)
@@ -921,7 +921,10 @@ def process(kerneldir, outdir, copy_list_file, git_revision=None,
                     new.append('BACKPORT_DISABLED_KCONFIG_OPTION')
             else:
                     new.append('!BACKPORT_KERNEL_%s' % dep.replace('.', '_'))
-        deplist[sym] = new
+        if bpid.integrate:
+            deplist[sym] = ["BACKPORT_" + x for x in new]
+        else:
+            deplist[sym] = new
     configtree.add_dependencies(deplist)
     git_debug_snapshot(args, "add kernel version dependencies")