All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] run-postinsts: fix setting pi_dir
@ 2020-12-22  6:46 Trevor Woerner
  2020-12-24  8:18 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Trevor Woerner @ 2020-12-22  6:46 UTC (permalink / raw)
  To: openembedded-core

The pi_dir variable isn't being set properly; it gets set to the value of the
*previous* package manager. Given the order of "rpm deb ipk", if the script
determines that the package manager is "ipk", pi_dir remains set at
SYSCONFDIR/deb-postinsts.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
index f84a7e18c8..c10fd11e9d 100755
--- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
+++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
@@ -20,14 +20,12 @@ for pm in $backend_list; do
 		"deb")
 			if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ]; then
 				pm_installed=true
-				break
 			fi
 			;;
 
 		"ipk")
 			if [ -s "#LOCALSTATEDIR#/lib/opkg/status" ]; then
 				pm_installed=true
-				break
 			fi
 			;;
 	esac
-- 
2.30.0.rc0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [OE-core] [PATCH] run-postinsts: fix setting pi_dir
  2020-12-22  6:46 [PATCH] run-postinsts: fix setting pi_dir Trevor Woerner
@ 2020-12-24  8:18 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2020-12-24  8:18 UTC (permalink / raw)
  To: Trevor Woerner, openembedded-core

On Tue, 2020-12-22 at 01:46 -0500, Trevor Woerner wrote:
> The pi_dir variable isn't being set properly; it gets set to the
> value of the
> *previous* package manager. Given the order of "rpm deb ipk", if the
> script
> determines that the package manager is "ipk", pi_dir remains set at
> SYSCONFDIR/deb-postinsts.
> 
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
>  meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 2
> --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-
> postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-
> postinsts
> index f84a7e18c8..c10fd11e9d 100755
> --- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
> +++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
> @@ -20,14 +20,12 @@ for pm in $backend_list; do
>                 "deb")
>                         if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ];
> then
>                                 pm_installed=true
> -                               break
>                         fi
>                         ;;
>  
>                 "ipk")
>                         if [ -s "#LOCALSTATEDIR#/lib/opkg/status" ];
> then
>                                 pm_installed=true
> -                               break
>                         fi
>                         ;;
>         esac

Just to confirm, this patch causes:

https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1668

(and other selftest builds failed the same way)

Cheers,

Richard


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-24  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-22  6:46 [PATCH] run-postinsts: fix setting pi_dir Trevor Woerner
2020-12-24  8:18 ` [OE-core] " Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.