All of lore.kernel.org
 help / color / mirror / Atom feed
* [tisdk-setup-scripts][PATCH] setup-package-install: select u-boot-tools for Ubuntu 16.04
@ 2018-03-01 14:55 Jacob Stiffler
  2018-03-01 19:00 ` Denys Dmytriyenko
  0 siblings, 1 reply; 2+ messages in thread
From: Jacob Stiffler @ 2018-03-01 14:55 UTC (permalink / raw)
  To: meta-arago

And fix potential issue in detection of required package status as
"dpkg-query -l" will list matching packages available on the system,
but not the intallation status as "dpkg-query -s" does.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 setup-package-install.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup-package-install.sh b/setup-package-install.sh
index 1ef94f9..c5c134f 100644
--- a/setup-package-install.sh
+++ b/setup-package-install.sh
@@ -63,7 +63,7 @@ get_host_type host
 # Starting with Ubuntu 14.04 the package name for uboot-mkimage has changed
 # to u-boot-tools
 
-if [ "$host" = "trusty" ]; then
+if [ "$host" = "trusty" -o "$host" = "xenial" ]; then
     packages_to_install="$packages_to_install u-boot-tools"
 else
     packages_to_install="$packages_to_install uboot-mkimage"
@@ -74,7 +74,7 @@ cmd="sudo apt-get install "
 
 # Check and only install the missing packages
 for i in $packages_to_install; do
-	is_it_installed=`dpkg-query -l $i 2>/dev/null`
+	is_it_installed=`dpkg-query -s $i 2>/dev/null`
 	if [ "$?" -ne "0" ]; then
 		needs_installation=`echo $needs_installation`" "$i
 		new_cmd=`echo $cmd`" "$i
-- 
1.9.1



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

* Re: [tisdk-setup-scripts][PATCH] setup-package-install: select u-boot-tools for Ubuntu 16.04
  2018-03-01 14:55 [tisdk-setup-scripts][PATCH] setup-package-install: select u-boot-tools for Ubuntu 16.04 Jacob Stiffler
@ 2018-03-01 19:00 ` Denys Dmytriyenko
  0 siblings, 0 replies; 2+ messages in thread
From: Denys Dmytriyenko @ 2018-03-01 19:00 UTC (permalink / raw)
  To: Jacob Stiffler; +Cc: meta-arago

ACK

On Thu, Mar 01, 2018 at 09:55:31AM -0500, Jacob Stiffler wrote:
> And fix potential issue in detection of required package status as
> "dpkg-query -l" will list matching packages available on the system,
> but not the intallation status as "dpkg-query -s" does.
> 
> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
>  setup-package-install.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/setup-package-install.sh b/setup-package-install.sh
> index 1ef94f9..c5c134f 100644
> --- a/setup-package-install.sh
> +++ b/setup-package-install.sh
> @@ -63,7 +63,7 @@ get_host_type host
>  # Starting with Ubuntu 14.04 the package name for uboot-mkimage has changed
>  # to u-boot-tools
>  
> -if [ "$host" = "trusty" ]; then
> +if [ "$host" = "trusty" -o "$host" = "xenial" ]; then
>      packages_to_install="$packages_to_install u-boot-tools"
>  else
>      packages_to_install="$packages_to_install uboot-mkimage"
> @@ -74,7 +74,7 @@ cmd="sudo apt-get install "
>  
>  # Check and only install the missing packages
>  for i in $packages_to_install; do
> -	is_it_installed=`dpkg-query -l $i 2>/dev/null`
> +	is_it_installed=`dpkg-query -s $i 2>/dev/null`
>  	if [ "$?" -ne "0" ]; then
>  		needs_installation=`echo $needs_installation`" "$i
>  		new_cmd=`echo $cmd`" "$i
> -- 
> 1.9.1
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


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

end of thread, other threads:[~2018-03-01 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-01 14:55 [tisdk-setup-scripts][PATCH] setup-package-install: select u-boot-tools for Ubuntu 16.04 Jacob Stiffler
2018-03-01 19:00 ` Denys Dmytriyenko

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.