diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-22 16:34:06 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-22 16:34:06 +0100 |
commit | 48b42dae5115ef321dfddcf570ae517c3874c4b9 (patch) | |
tree | 790aaa4acb9618bfc18fd85a1b964bea99e5c7df /meta/classes/package_rpm.bbclass | |
parent | 535a77a9b681423e2f10744aca54858c25a03cb0 (diff) | |
download | poky-48b42dae5115ef321dfddcf570ae517c3874c4b9.tar.gz |
classes: Only enable fakeroot on setscene tasks with packaging
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 4ad97c35c5..fbe0626d6e 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -545,6 +545,7 @@ python () { | |||
545 | deps.append('virtual/fakeroot-native:do_populate_sysroot') | 545 | deps.append('virtual/fakeroot-native:do_populate_sysroot') |
546 | bb.data.setVarFlag('do_package_write_rpm', 'depends', " ".join(deps), d) | 546 | bb.data.setVarFlag('do_package_write_rpm', 'depends', " ".join(deps), d) |
547 | bb.data.setVarFlag('do_package_write_rpm', 'fakeroot', 1, d) | 547 | bb.data.setVarFlag('do_package_write_rpm', 'fakeroot', 1, d) |
548 | bb.data.setVarFlag('do_package_write_rpm_setscene', 'fakeroot', 1, d) | ||
548 | } | 549 | } |
549 | 550 | ||
550 | SSTATETASKS += "do_package_write_rpm" | 551 | SSTATETASKS += "do_package_write_rpm" |
@@ -556,7 +557,6 @@ python do_package_write_rpm_setscene () { | |||
556 | sstate_setscene(d) | 557 | sstate_setscene(d) |
557 | } | 558 | } |
558 | addtask do_package_write_rpm_setscene | 559 | addtask do_package_write_rpm_setscene |
559 | do_package_write_rpm_setscene[fakeroot] = "1" | ||
560 | 560 | ||
561 | python do_package_write_rpm () { | 561 | python do_package_write_rpm () { |
562 | bb.build.exec_func("read_subpackage_metadata", d) | 562 | bb.build.exec_func("read_subpackage_metadata", d) |