]> code.ossystems Code Review - openembedded-core.git/commitdiff
postinst-intercepts: do not execute any variant of delay_to_first_boot
authorJoe Slater <joe.slater@windriver.com>
Thu, 21 Jun 2018 18:22:17 +0000 (11:22 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 2 Jul 2018 16:13:19 +0000 (17:13 +0100)
As of commit 2c5c6e3ff we create multilib variants of intercept
hooks but we did not account for delay_to_first_boot variants.
This was covered up until commit a335e7867, but will now cause
an error.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py

index 20a41d53f841ca169ec380cee55bb37ebb2b892d..9aa5847c8a3690837bc67ef60372c70e588badd7 100644 (file)
@@ -382,7 +382,8 @@ class PackageManager(object, metaclass=ABCMeta):
             if script == "postinst_intercept" or not os.access(script_full, os.X_OK):
                 continue
 
-            if script == "delay_to_first_boot":
+            # we do not want to run any multilib variant of this
+            if script.startswith("delay_to_first_boot"):
                 self._postpone_to_first_boot(script_full)
                 continue